From fb05395dedfb3098c6b421352da2be3b6fa58db9 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 20 Nov 2013 21:46:29 +0100 Subject: OPENGL: Fix texture re-allocation check This fixes a crash when opening the menu in the SCI Laura Bow 2 intro. --- backends/graphics/opengl/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/graphics') 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; } -- cgit v1.2.3