[fixed]OpenGL error with MRT...

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
griffin2000
Posts: 22
Joined: Mon Nov 15, 2010 9:18 pm

[fixed]OpenGL error with MRT...

Post 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)
griffin2000
Posts: 22
Joined: Mon Nov 15, 2010 9:18 pm

Post by griffin2000 »

Post Reply