projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275620c
)
fbobject: don't allow LUMINANCE/INTENSITY/ALPHA fbo on ES/Core
author
Jordan Justen
<jordan.l.justen@intel.com>
Thu, 27 Dec 2012 20:41:10 +0000
(12:41 -0800)
committer
Jordan Justen
<jordan.l.justen@intel.com>
Tue, 15 Jan 2013 04:47:02 +0000
(20:47 -0800)
v2:
* Only allow on GL Legacy contexts
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index c438268163322ebc4f66a151bc9a8790815094ab..bb8ee2d8d7821f96f5927eac0121881b7cbe422d 100644
(file)
--- a/
src/mesa/main/fbobject.c
+++ b/
src/mesa/main/fbobject.c
@@
-492,7
+492,8
@@
_mesa_is_legal_color_format(const struct gl_context *ctx, GLenum baseFormat)
case GL_LUMINANCE_ALPHA:
case GL_INTENSITY:
case GL_ALPHA:
- return ctx->Extensions.ARB_framebuffer_object;
+ return ctx->API == API_OPENGL_COMPAT &&
+ ctx->Extensions.ARB_framebuffer_object;
case GL_RED:
case GL_RG:
return ctx->Extensions.ARB_texture_rg;