mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
dri_util: Compare against the correct API enums
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
258771882d
commit
0c445bb618
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue