diff options
author | Willem Jan Palenstijn | 2013-11-20 21:46:29 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-11-20 21:49:07 +0100 |
commit | fb05395dedfb3098c6b421352da2be3b6fa58db9 (patch) | |
tree | 8e40ec15e72640dd0ada1678f8c7a0176f67d8e1 /backends/graphics | |
parent | a5c920cbab66ef7805364c969240e51a7a387953 (diff) | |
download | scummvm-rg350-fb05395dedfb3098c6b421352da2be3b6fa58db9.tar.gz scummvm-rg350-fb05395dedfb3098c6b421352da2be3b6fa58db9.tar.bz2 scummvm-rg350-fb05395dedfb3098c6b421352da2be3b6fa58db9.zip |
OPENGL: Fix texture re-allocation check
This fixes a crash when opening the menu in the SCI Laura Bow 2 intro.
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/opengl/texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/graphics/opengl/texture.cpp b/backends/graphics/opengl/texture.cpp index 917bf70534..8f17ed7eeb 100644 --- a/backends/graphics/opengl/texture.cpp +++ b/backends/graphics/opengl/texture.cpp @@ -287,7 +287,7 @@ void TextureCLUT8::allocate(uint width, uint height) { // We only need to reinitialize our CLUT8 surface when the output size // changed. - if (width == _clut8Data.w && width == _clut8Data.h) { + if (width == _clut8Data.w && height == _clut8Data.h) { return; } |