Commit 0011bb60 by stal Committed by Corentin Wallez

fix texture size check in WindowSurfaceCGL::swap

BUG=angleproject:1233 Change-Id: I92fddf331fe0687b290606fe222863bd0fcbc2da Reviewed-on: https://chromium-review.googlesource.com/329804Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent c4a96d67
...@@ -43,3 +43,4 @@ Yuri O'Donnell ...@@ -43,3 +43,4 @@ Yuri O'Donnell
Josh Soref Josh Soref
Maks Naumov Maks Naumov
Jinyoung Hur Jinyoung Hur
Sebastian Bergstein
...@@ -85,6 +85,7 @@ David Kilzer ...@@ -85,6 +85,7 @@ David Kilzer
Jacek Caban Jacek Caban
Tibor den Ouden Tibor den Ouden
Régis Fénéon Régis Fénéon
Sebastian Bergstein
Microsoft Corporation Microsoft Corporation
Cooper Partin Cooper Partin
......
...@@ -250,7 +250,7 @@ egl::Error WindowSurfaceCGL::swap() ...@@ -250,7 +250,7 @@ egl::Error WindowSurfaceCGL::swap()
unsigned height = getHeight(); unsigned height = getHeight();
auto &texture = *mSwapState.beingRendered; auto &texture = *mSwapState.beingRendered;
if (texture.width != width || texture.height != texture.height) if (texture.width != width || texture.height != height)
{ {
mStateManager->bindTexture(GL_TEXTURE_2D, texture.texture); mStateManager->bindTexture(GL_TEXTURE_2D, texture.texture);
mFunctions->texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, mFunctions->texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment