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
This commit is contained in:
Alexander von Gluck IV 2014-12-31 21:46:22 +00:00
parent 27c555cb7b
commit 8495ff9b7a

View File

@ -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;