X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcpbuffer.C;h=c847e8328ed52114fbe4eb5aa9a598a2563b8f26;hb=83b70dd60863377cb281e6be5206304e10373e30;hp=fed0d2d2d10f6946edb4799e0f5bdabc7abf04c1;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcpbuffer.C b/cinelerra-5.1/guicast/bcpbuffer.C index fed0d2d2..c847e832 100644 --- a/cinelerra-5.1/guicast/bcpbuffer.C +++ b/cinelerra-5.1/guicast/bcpbuffer.C @@ -64,7 +64,11 @@ GLXPbuffer BC_PBuffer::get_pbuffer() void BC_PBuffer::create_pbuffer(int w, int h) { #ifdef HAVE_GL +#ifdef GLx4 int ww = (w + 3) & ~3, hh = (h + 3) & ~3; +#else + int ww = w, hh = h; +#endif BC_WindowBase *current_window = BC_WindowBase::get_synchronous()->current_window; window_id = current_window->get_id();