OGL32CTX: Some fixes.

The track is now displayed (even with light) but not the karts, animations...

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2014-01-13 15:28:37 +00:00
parent 6a8396ea33
commit c520db663f
2 changed files with 7 additions and 3 deletions

View File

@ -174,7 +174,7 @@ void initGL()
glUniform1fv = (PFNGLUNIFORM1FVPROC)IRR_OGL_LOAD_EXTENSION("glUniform1fv");
glUniform4fv = (PFNGLUNIFORM4FVPROC)IRR_OGL_LOAD_EXTENSION("glUniform4fv");
#endif
#if ENABLE_ARB_DEBUG_OUTPUT
#ifdef ENABLE_ARB_DEBUG_OUTPUT
glDebugMessageCallbackARB(debugCallback, NULL);
#endif
const float quad_vertex[] = {

View File

@ -321,14 +321,18 @@ void STKMesh::render()
video::IMaterialRenderer* rnd = driver->getMaterialRenderer(material.MaterialType);
bool transparent = (rnd && rnd->isTransparent());
#ifdef OGL32CTX
// only render transparent buffer if this is the transparent render pass
// and solid only in solid pass
/* if (isObject(material.MaterialType) && !isTransparentPass && !transparent)
if (isObject(material.MaterialType) && !isTransparentPass && !transparent)
{
initvaostate(GLmeshes[i], material.MaterialType);
draw(GLmeshes[i], material.MaterialType);
}
else*/ if (transparent == isTransparentPass)
else if (transparent == isTransparentPass)
#else
if (transparent == isTransparentPass)
#endif
{
driver->setMaterial(material);
driver->drawMeshBuffer(mb);