From 8495ff9b7abcca2956bc55f9e6d1d0954d71070f Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 31 Dec 2014 21:46:22 +0000 Subject: [PATCH] apps/glteapot: Don't lock, then issue BGLView::Resize * BGLView has it's own locking, this isn't the correct behaviour as you only lock for gl* calls * Resolves problems with window not scaling properly on proper llvmpipe --- src/apps/glteapot/ObjectView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/glteapot/ObjectView.cpp b/src/apps/glteapot/ObjectView.cpp index 83645e4c92..6849aa6ea9 100644 --- a/src/apps/glteapot/ObjectView.cpp +++ b/src/apps/glteapot/ObjectView.cpp @@ -551,10 +551,10 @@ ObjectView::MouseMoved(BPoint point, uint32 transit, const BMessage *msg) void ObjectView::FrameResized(float width, float height) { - LockGL(); - BGLView::FrameResized(width, height); + LockGL(); + width = Bounds().Width(); height = Bounds().Height(); fYxRatio = height / width;