X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..40730ad17db78193611389a3d12db772b28eac31:/samples/opengl/cube/cube.cpp?ds=inline diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index 7396d9bb5e..f7423a73b2 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -161,7 +161,7 @@ TestGLContext::TestGLContext(wxGLCanvas *canvas) const wxImage img(DrawDice(256, i + 1)); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, img.GetWidth(), img.GetHeight(), + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, img.GetWidth(), img.GetHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE, img.GetData()); }