aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-11-26 21:11:14 -0800
committerKenneth Graunke <[email protected]>2012-11-28 18:12:07 -0800
commit9947470655bbf8f4a9c98fe6d93ff5c3486f1124 (patch)
tree63ed4fbd10658f83a40c457cac31991d99a3b6bc /include
parent8d1ee38a4c273d5ba7110917de7989f78225fa7b (diff)
meta: Don't try to glOrtho when the draw buffer isn't initialized.
I ran across this while running a glGenerateMipmap() test. _meta_GenerateMipmap sets MESA_META_TRANSFORM, which causes _mesa_meta_begin to try and set a default orthographic projection. Unfortunately, if the drawbuffer isn't set up, ctx->DrawBuffer->Width and Height are 0, which just causes an GL_INVALID_VALUE error. Fixes oglconform's fbo/mipmap.automatic, mipmap.manual, and mipmap.manualIterateTexTargets. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions