Skip to content

Commit fbd7e3e

Browse files
authored
[Fix] (Buffer): Remove a wrong error check in glFlushMappedBufferRange.
1 parent a77a50a commit fbd7e3e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/main/cpp/gl/buffer.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -918,12 +918,6 @@ void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length)
918918
return;
919919
}
920920

921-
if (offset < mapping.offset || offset + length > mapping.offset + mapping.length) {
922-
LOG_E("glFlushMappedBufferRange: Flushed range [%ld, %ld) is outside mapped range [%ld, %ld) for buffer %u.",
923-
offset, offset + length, mapping.offset, mapping.offset + mapping.length, buffer);
924-
return;
925-
}
926-
927921
GLuint real_buffer = find_real_buffer(buffer);
928922
if (real_buffer) {
929923
GLES.glBindBuffer(target, 0);

0 commit comments

Comments
 (0)