From ef9f30d5c4caac88cee726c8c15fbdeda01a267c Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 6 Sep 2013 00:59:19 -0300 Subject: [PATCH] Fixed a typo preventing compressed textures from being loaded into images --- src/modules/graphics/opengl/wrap_Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index 31def66a4..b75b9aab9 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -174,7 +174,7 @@ int w_newImage(lua_State *L) else data = luax_checktype(L, 1, "ImageData", IMAGE_IMAGE_DATA_T); - if (!data && !data) + if (!data && !cdata) return luaL_error(L, "Error creating image."); // Create the image.