Skip to content
Snippets Groups Projects
Commit 190346cc authored by dg's avatar dg
Browse files

fix?

git-svn-id: http://svn.net-core.org/repos/t-engine4@4190 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6ab33edb
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,7 @@ static int map_objects_display(lua_State *L)
// Now setup a texture to render to
GLuint img;
CHECKGL(glGenTextures(1, &img));
tglBindTexture(GL_TEXTURE_2D, img);
tfglBindTexture(GL_TEXTURE_2D, img);
CHECKGL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL));
CHECKGL(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT));
CHECKGL(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment