Fix window opacity not being applied on vert (re)construction

This commit is contained in:
Jonas Kulla 2013-09-27 04:37:56 +02:00
parent 43aacc13d9
commit 92ab65ba52
1 changed files with 2 additions and 0 deletions

View File

@ -371,6 +371,7 @@ struct WindowPrivate
FloatRect texRect = FloatRect(0, 0, size.x, size.y); FloatRect texRect = FloatRect(0, 0, size.x, size.y);
baseTexQuad.setTexPosRect(texRect, texRect); baseTexQuad.setTexPosRect(texRect, texRect);
opacityDirty = true;
baseTexDirty = true; baseTexDirty = true;
} }
@ -521,6 +522,7 @@ struct WindowPrivate
baseVertDirty = false; baseVertDirty = false;
updateBaseQuadArray = true; updateBaseQuadArray = true;
} }
if (opacityDirty) if (opacityDirty)
{ {
updateBaseAlpha(); updateBaseAlpha();