Quote:By the way I saw you use -O3 optimization, does it worth it? As far as I know it's experimental and unstable.
I haven't experience any issues with that.
Quote:P.S. gl_FragData is only supported in #version 100 (ES 2.0)
Hi,
Yes in OpenGL ES 2.0 the MRT is not supported. But you're running a Linux machine, which has the Desktop Regular Version of OpenGL, which should support MRT.
I think all DX9 level hardware class do support it. GPU's as old as GeForce 6600, maybe even GeForce 5FX, Radeon 9550 Pro. Intel 950, X3000.
What model of the GPU do you have?
In "Display.cpp", line 1040, there's
Code:
Int max_draw_buffers=1; glGetIntegerv(GL_MAX_DRAW_BUFFERS, &max_draw_buffers);
_max_rt=Mid(max_draw_buffers, 1, 255);
Could you add a
LogN(S+"maxRT:"+_max_rt);
or
Exit(S+"maxRT:"+_max_rt);
And let me know what the number you're getting?
If it's 1, then it means your GPU is limited to only 1 RT, and in that case we could consider enabling the
Code:
code=Replace(code, "#extension GL_ARB_draw_buffers", "//");
code=Replace(code, "gl_FragData[1]", "//gl_FragData[1]");
code=Replace(code, "gl_FragData[2]", "//gl_FragData[2]");
for desktop OpenGL too