mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
mesa: fix default_access_mode() result for ES2
The GL_OES_mapbuffer extension is supported by OpenGL ES 1 and ES 2 so return GL_MAP_WRITE_BIT for both ES versions, not just ES 1. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
3eb2b5c5e4
commit
8551635242
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ default_access_mode(const struct gl_context *ctx)
|
|||
* The difference is because GL_OES_mapbuffer only supports mapping buffers
|
||||
* write-only.
|
||||
*/
|
||||
return (ctx->API == API_OPENGLES)
|
||||
return _mesa_is_gles(ctx)
|
||||
? GL_MAP_WRITE_BIT : (GL_MAP_READ_BIT | GL_MAP_WRITE_BIT);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue