diff --git a/src/kits/opengl/GLView.cpp b/src/kits/opengl/GLView.cpp index e14085c344..0c3e00f20e 100644 --- a/src/kits/opengl/GLView.cpp +++ b/src/kits/opengl/GLView.cpp @@ -128,7 +128,12 @@ void BGLView::AttachedToWindow() if (fRenderer) { // Don't paint white window background when resized SetViewColor(B_TRANSPARENT_32_BIT); - return fRenderer->AttachedToWindow(); + fRenderer->AttachedToWindow(); + + // Set default OpenGL viewport: + glViewport(0, 0, Bounds().IntegerWidth(), Bounds().IntegerHeight()); + + return; } // No Renderer, no rendering. Setup a minimal "No Renderer" string drawing context