DescriptionOnly switch draw buffers if the extension is supported
Otherwise it's possible to end up crashing when calling a null function
pointer, if a framebuffer does not have a color buffer attached.
This bug applies to at least some GLES3 platforms, where DrawBuffers
function is not bound (which is reasonable, since core version of the
function behaves subtly differently than DrawBuffersEXT in relation to
GLSL ES 1.0 shaders, if the EXT_draw_buffers extension is missing). Also
possibly GLES2 platforms which implement OES_depth_texture but not
EXT_draw_buffers.
BUG=401645
TEST=gpu_unittests, WebGL conformance tests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288347
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|