mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 02:28:20 +02:00
mesa: whitespace fixes in pbo.c
This commit is contained in:
parent
ac14f569fe
commit
9fd4e9e9e6
1 changed files with 14 additions and 14 deletions
|
|
@ -172,11 +172,12 @@ _mesa_map_pbo_source(struct gl_context *ctx,
|
|||
*/
|
||||
const GLvoid *
|
||||
_mesa_map_validate_pbo_source(struct gl_context *ctx,
|
||||
GLuint dimensions,
|
||||
const struct gl_pixelstore_attrib *unpack,
|
||||
GLsizei width, GLsizei height, GLsizei depth,
|
||||
GLenum format, GLenum type, GLsizei clientMemSize,
|
||||
const GLvoid *ptr, const char *where)
|
||||
GLuint dimensions,
|
||||
const struct gl_pixelstore_attrib *unpack,
|
||||
GLsizei width, GLsizei height, GLsizei depth,
|
||||
GLenum format, GLenum type,
|
||||
GLsizei clientMemSize,
|
||||
const GLvoid *ptr, const char *where)
|
||||
{
|
||||
ASSERT(dimensions == 1 || dimensions == 2 || dimensions == 3);
|
||||
|
||||
|
|
@ -268,11 +269,11 @@ _mesa_map_pbo_dest(struct gl_context *ctx,
|
|||
*/
|
||||
GLvoid *
|
||||
_mesa_map_validate_pbo_dest(struct gl_context *ctx,
|
||||
GLuint dimensions,
|
||||
const struct gl_pixelstore_attrib *unpack,
|
||||
GLsizei width, GLsizei height, GLsizei depth,
|
||||
GLenum format, GLenum type, GLsizei clientMemSize,
|
||||
GLvoid *ptr, const char *where)
|
||||
GLuint dimensions,
|
||||
const struct gl_pixelstore_attrib *unpack,
|
||||
GLsizei width, GLsizei height, GLsizei depth,
|
||||
GLenum format, GLenum type, GLsizei clientMemSize,
|
||||
GLvoid *ptr, const char *where)
|
||||
{
|
||||
ASSERT(dimensions == 1 || dimensions == 2 || dimensions == 3);
|
||||
|
||||
|
|
@ -339,12 +340,13 @@ _mesa_validate_pbo_teximage(struct gl_context *ctx, GLuint dimensions,
|
|||
return pixels;
|
||||
}
|
||||
if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
|
||||
format, type, INT_MAX, pixels)) {
|
||||
format, type, INT_MAX, pixels)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, funcName, "(invalid PBO access)");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size,
|
||||
buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0,
|
||||
unpack->BufferObj->Size,
|
||||
GL_MAP_READ_BIT,
|
||||
unpack->BufferObj);
|
||||
if (!buf) {
|
||||
|
|
@ -407,5 +409,3 @@ _mesa_unmap_teximage_pbo(struct gl_context *ctx,
|
|||
ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue