st/mesa: don't use blit_copy_pixels if an occlusion query is active
CopyPixels, just as DrawPixels, should count the samples that passed depth test. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
79e421260a
commit
9ef44e6eb7
|
@ -1365,7 +1365,8 @@ blit_copy_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
|
|||
!ctx->VertexProgram.Enabled &&
|
||||
!ctx->Shader.CurrentFragmentProgram &&
|
||||
ctx->DrawBuffer->_NumColorDrawBuffers == 1 &&
|
||||
!ctx->Query.CondRenderQuery) {
|
||||
!ctx->Query.CondRenderQuery &&
|
||||
!ctx->Query.CurrentOcclusionObject) {
|
||||
struct st_renderbuffer *rbRead, *rbDraw;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue