Page 1 of 1

[fixed]OpenGL error with MRT...

Posted: Tue Nov 16, 2010 1:17 am
by griffin2000
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)

Posted: Sat Nov 20, 2010 8:09 am
by griffin2000