projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: allow buffers mapped with the persistent flag to be used by the GPU
[mesa.git]
/
src
/
mesa
/
main
/
drawpix.c
diff --git
a/src/mesa/main/drawpix.c
b/src/mesa/main/drawpix.c
index 096615c05ac6da887563fd0ebed11ba9883b90c2..63e5870e6870eec243741fa29529aee21d0f9bdf 100644
(file)
--- a/
src/mesa/main/drawpix.c
+++ b/
src/mesa/main/drawpix.c
@@
-151,7
+151,7
@@
_mesa_DrawPixels( GLsizei width, GLsizei height,
"glDrawPixels(invalid PBO access)");
goto end;
}
"glDrawPixels(invalid PBO access)");
goto end;
}
- if (_mesa_
bufferobj_mapped
(ctx->Unpack.BufferObj)) {
+ if (_mesa_
check_disallowed_mapping
(ctx->Unpack.BufferObj)) {
/* buffer is mapped - that's an error */
_mesa_error(ctx, GL_INVALID_OPERATION,
"glDrawPixels(PBO is mapped)");
/* buffer is mapped - that's an error */
_mesa_error(ctx, GL_INVALID_OPERATION,
"glDrawPixels(PBO is mapped)");
@@
-335,7
+335,7
@@
_mesa_Bitmap( GLsizei width, GLsizei height,
"glBitmap(invalid PBO access)");
return;
}
"glBitmap(invalid PBO access)");
return;
}
- if (_mesa_
bufferobj_mapped
(ctx->Unpack.BufferObj)) {
+ if (_mesa_
check_disallowed_mapping
(ctx->Unpack.BufferObj)) {
/* buffer is mapped - that's an error */
_mesa_error(ctx, GL_INVALID_OPERATION,
"glBitmap(PBO is mapped)");
/* buffer is mapped - that's an error */
_mesa_error(ctx, GL_INVALID_OPERATION,
"glBitmap(PBO is mapped)");