X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_gl2.c;h=4ef87be392a7a7345bb2c941a0a3bc8cc76f4066;hb=6636a18df676a102cee0bcf31ce81b67dc7b7ac2;hp=b2f1822d2539220caccee451301a64a21a1423ad;hpb=fd39eec053fece6a483adf6cab3502bac066cf09;p=freeglut diff --git a/src/fg_gl2.c b/src/fg_gl2.c index b2f1822..4ef87be 100644 --- a/src/fg_gl2.c +++ b/src/fg_gl2.c @@ -37,11 +37,16 @@ void FGAPIENTRY glutSetVertexAttribNormal(GLint attrib) { fgStructure.CurrentWindow->Window.attribute_v_normal = attrib; } +void FGAPIENTRY glutSetVertexAttribTexCoord2(GLint attrib) { + if (fgStructure.CurrentWindow != NULL) + fgStructure.CurrentWindow->Window.attribute_v_texture = attrib; +} + void fgInitGL2() { #ifndef GL_ES_VERSION_2_0 fgState.HasOpenGL20 = 0; - // TODO: Mesa returns a valid stub function, rather than NULL, - // when we request a non-existent function + /* TODO: Mesa returns a valid stub function, rather than NULL, + when we request a non-existent function */ #define CHECK(func, a) if ((a) == NULL) { fgWarning("fgInitGL2: " func " is NULL"); return; } CHECK("fghGenBuffers", fghGenBuffers = (FGH_PFNGLGENBUFFERSPROC)glutGetProcAddress("glGenBuffers")); CHECK("fghDeleteBuffers", fghDeleteBuffers = (FGH_PFNGLDELETEBUFFERSPROC)glutGetProcAddress("glDeleteBuffers"));