diff options
author | Brian Paul <[email protected]> | 2004-10-31 15:49:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-10-31 15:49:59 +0000 |
commit | ba164c4614288f1642fc8e2f83d2895991b22d70 (patch) | |
tree | adb19111709d974569d27c828078262c20002256 /src/mesa/swrast/s_context.c | |
parent | 355467bed8cf34cf5967c7be3c5f1b87ff08f845 (diff) |
Removed _swrast_validate_pbo_access().
In x11 driver, map/unmap PBO as needed in DrawPixels functions.
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index e9755e91997..a8716d80f50 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -771,25 +771,3 @@ _swrast_print_vertex( GLcontext *ctx, const SWvertex *v ) _mesa_debug(ctx, "\n"); } } - - -/** - * Validate access to a PBO to be sure we're not going to read/write - * out of buffer bounds. - */ -GLvoid * -_swrast_validate_pbo_access(const struct gl_pixelstore_attrib *pack, - GLsizei width, GLsizei height, GLsizei depth, - GLenum format, GLenum type, GLvoid *ptr) -{ - if (pack->BufferObj->Name == 0) { - /* no PBO */ - return ptr; - } - else if (_mesa_validate_pbo_access(pack, width, height, depth, format, - type, ptr)) { - return ADD_POINTERS(pack->BufferObj->Data, ptr); - } - /* bad access! */ - return NULL; -} |