mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 09:43:52 +01:00
Fix: r6469 broke fixed function materials when shader materials where created but not used
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6489 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
9ce63bc7d3
commit
2a04d747d1
@ -573,10 +573,14 @@ void COpenGLSLMaterialRenderer::startUseProgram()
|
||||
|
||||
void COpenGLSLMaterialRenderer::stopUseProgram()
|
||||
{
|
||||
// Not going to reset irrGlUseProgram/extGlUseProgramObject as it shouldn't really matter
|
||||
// Necessary as fixed function pipeline breaks if programs are not reset to 0
|
||||
if (Program)
|
||||
Driver->extGlUseProgramObject(0);
|
||||
if (Program2)
|
||||
Driver->irrGlUseProgram(0);
|
||||
|
||||
// Force reset of material to ensure OnSetMaterial will be called or we can miss
|
||||
// the next UseProgram call
|
||||
// the next UseProgram call as stopUseProgram can be called from anywhere
|
||||
Driver->DoResetRenderStates();
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Tests finished. 72 tests of 72 passed.
|
||||
Compiled as DEBUG
|
||||
Test suite pass at GMT Sun May 07 14:26:39 2023
|
||||
Test suite pass at GMT Mon May 08 14:14:47 2023
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user