mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
fix some pbo path problems
This commit is contained in:
parent
5a7feb8ea2
commit
61972077cd
2 changed files with 4 additions and 2 deletions
|
|
@ -860,7 +860,8 @@ _swrast_DrawPixels( GLcontext *ctx,
|
|||
format, type, pixels)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glDrawPixels(invalid PBO access)");
|
||||
goto end;
|
||||
RENDER_FINISH(swrast,ctx);
|
||||
return;
|
||||
}
|
||||
buf = (GLubyte *) ctx->Driver.MapBuffer(ctx, GL_PIXEL_UNPACK_BUFFER_EXT,
|
||||
GL_READ_ONLY_ARB,
|
||||
|
|
|
|||
|
|
@ -580,7 +580,8 @@ _swrast_ReadPixels( GLcontext *ctx,
|
|||
format, type, pixels)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glReadPixels(invalid PBO access)");
|
||||
goto end;
|
||||
RENDER_FINISH(swrast, ctx);
|
||||
return;
|
||||
}
|
||||
buf = (GLubyte *) ctx->Driver.MapBuffer(ctx, GL_PIXEL_PACK_BUFFER_EXT,
|
||||
GL_WRITE_ONLY_ARB,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue