mesa: fix default_access_mode() result for ES2
authorBrian Paul <brianp@vmware.com>
Thu, 2 Aug 2012 15:40:40 +0000 (09:40 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 Aug 2012 15:40:40 +0000 (09:40 -0600)
commit8551635242470b1487b65a9ecf43c385f6fe4134
tree5eda29d00f7ba1b9536e066facc198e2731d7d07
parent3eb2b5c5e4e98b18844a90c93afad7b56f82269b
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>
src/mesa/main/bufferobj.c