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)
[fixed]OpenGL error with MRT...
-
- Posts: 22
- Joined: Mon Nov 15, 2010 9:18 pm
FYI added this to bug tracker:
http://sourceforge.net/tracker/?func=de ... tid=540676
http://sourceforge.net/tracker/?func=de ... tid=540676