Ver código fonte

st/mesa: don't use util_blit_pixels_writemask() for depth or depth/stencil

util_blit_pixels_writemask() only works for color formats at this time.
Also, it might never work for depth/stencil surfaces since we can't get
handle stencil values in a fragment shader.

Fixes glCopyTexSubImage(GL_DEPTH_COMPONENT).
tags/mesa_7_6_1_rc1
Brian Paul 16 anos atrás
pai
commit
e60ebebb39
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      src/mesa/state_tracker/st_cb_texture.c

+ 2
- 0
src/mesa/state_tracker/st_cb_texture.c Ver arquivo

@@ -1560,6 +1560,8 @@ st_copy_texsubimage(GLcontext *ctx,
use_fallback = GL_FALSE;
}
else if (format_writemask &&
texBaseFormat != GL_DEPTH_COMPONENT &&
texBaseFormat != GL_DEPTH_STENCIL &&
screen->is_format_supported(screen, src_format,
PIPE_TEXTURE_2D,
PIPE_TEXTURE_USAGE_SAMPLER,

Carregando…
Cancelar
Salvar