projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2587718
)
dri_util: Compare against the correct API enums
author
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 7 Aug 2012 16:58:55 +0000
(09:58 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 14 Aug 2012 22:41:02 +0000
(15:41 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/common/dri_util.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/dri_util.c
b/src/mesa/drivers/dri/common/dri_util.c
index d28f774dd63b3edac4138527e4394ff08392dc83..86409dd068967a1cfbb86c4abc10f6fe9a21ec87 100644
(file)
--- a/
src/mesa/drivers/dri/common/dri_util.c
+++ b/
src/mesa/drivers/dri/common/dri_util.c
@@
-244,8
+244,8
@@
dri2CreateContextAttribs(__DRIscreen *screen, int api,
* anything specific about this case. However, none of the known flags
* have any meaning in an ES context, so this seems safe.
*/
- if (mesa_api !=
__DRI_
API_OPENGL
- && mesa_api !=
__DRI_
API_OPENGL_CORE
+ if (mesa_api != API_OPENGL
+ && mesa_api != API_OPENGL_CORE
&& flags != 0) {
*error = __DRI_CTX_ERROR_BAD_FLAG;
return NULL;