mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GLES: iOS buildfix.
This commit is contained in:
parent
5f1cd19687
commit
be0ab58365
1 changed files with 2 additions and 0 deletions
|
@ -701,6 +701,7 @@ void *GLRBuffer::Map(GLbitfield access) {
|
|||
|
||||
void *p = nullptr;
|
||||
if (gl_extensions.ARB_buffer_storage || gl_extensions.EXT_buffer_storage) {
|
||||
#ifndef IOS
|
||||
if (!hasStorage_) {
|
||||
#ifdef USING_GLES2
|
||||
glBufferStorageEXT(target_, size_, nullptr, access & (GL_MAP_READ_BIT | GL_MAP_WRITE_BIT));
|
||||
|
@ -709,6 +710,7 @@ void *GLRBuffer::Map(GLbitfield access) {
|
|||
#endif
|
||||
hasStorage_ = true;
|
||||
}
|
||||
#endif
|
||||
p = glMapBufferRange(target_, 0, size_, access);
|
||||
} else if (gl_extensions.VersionGEThan(3, 0, 0)) {
|
||||
// GLES3 or desktop 3.
|
||||
|
|
Loading…
Add table
Reference in a new issue