From a9d935caa172e7281aa6aa4b7dd9a093a6b8e3e0 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 21 Oct 2016 23:43:26 -0300 Subject: [PATCH] Fixed compilation --HG-- branch : minor --- src/modules/graphics/opengl/OpenGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/opengl/OpenGL.cpp b/src/modules/graphics/opengl/OpenGL.cpp index da08aeaea..50400c8ba 100644 --- a/src/modules/graphics/opengl/OpenGL.cpp +++ b/src/modules/graphics/opengl/OpenGL.cpp @@ -320,7 +320,7 @@ void OpenGL::createDefaultTexture() GLuint curtexture = state.boundTextures[state.curTextureUnit]; glGenTextures(1, &state.defaultTexture); - bindTexture(state.defaultTexture); + bindTextureToUnit(state.defaultTexture, 0, false); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); @@ -331,7 +331,7 @@ void OpenGL::createDefaultTexture() GLubyte pix[] = {255, 255, 255, 255}; glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, pix); - bindTexture(curtexture); + bindTextureToUnit(curtexture, 0, false); } void OpenGL::pushTransform()