X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fgles2rice%2Fsrc%2FOGLRender.cpp;h=f11798eff509e93cf4b1e00b114d71ab2fdaf888;hb=5c6423ae74de9908a20177c405c6f29cc5f6f91e;hp=5f25f16af2230ed3c27c94b3d57dc12973baff0f;hpb=0c9dca78d037f55fed62bf7d92c9db2abd11d654;p=mupen64plus-pandora.git diff --git a/source/gles2rice/src/OGLRender.cpp b/source/gles2rice/src/OGLRender.cpp index 5f25f16..f11798e 100755 --- a/source/gles2rice/src/OGLRender.cpp +++ b/source/gles2rice/src/OGLRender.cpp @@ -198,7 +198,13 @@ void OGLRender::Initialize(void) glVertexAttribPointer(VS_TEXCOORD0,2,GL_FLOAT,GL_FALSE, sizeof( TLITVERTEX ), &(g_vtxBuffer[0].tcord[0].u)); OPENGL_CHECK_ERRORS; } - + + if (m_bSupportFogCoordExt) + { + glVertexAttribPointer(VS_FOG,1,GL_FLOAT,GL_FALSE,sizeof(float)*5,&(g_vtxProjected5[0][4])); + OPENGL_CHECK_ERRORS; + } + glVertexAttribPointer(VS_COLOR, 4, GL_UNSIGNED_BYTE,GL_TRUE, sizeof(uint8)*4, &(g_oglVtxColors[0][0]) ); OPENGL_CHECK_ERRORS; #endif