GLx4 w/h mult of 4 is not req, cwdw crop input range checks, fix cropp.png dir, chang...
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcpbuffer.C
index fed0d2d2d10f6946edb4799e0f5bdabc7abf04c1..c847e8328ed52114fbe4eb5aa9a598a2563b8f26 100644 (file)
@@ -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();