[fixed]OpenGL error with MRT...
Posted: Tue Nov 16, 2010 1:17 am
COpenGLDriver::setRenderTarget will generate an invalid enum error on line 3946. The Irrilicht blend-function enums are being passed to extGlBlendFuncIndexed instead of converting them to GL enums.
Locally I just hacked it so instead of reading:
extGlBlendFuncIndexed(i, targets.BlendFuncSrc, targets.BlendFuncDst);
It now reads:
extGlBlendFuncIndexed(i, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
This gets rid of the error (and I don't need any more complicated blend funcs)
Locally I just hacked it so instead of reading:
extGlBlendFuncIndexed(i, targets.BlendFuncSrc, targets.BlendFuncDst);
It now reads:
extGlBlendFuncIndexed(i, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
This gets rid of the error (and I don't need any more complicated blend funcs)