summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-07 17:56:40 -0600
committerBrian Paul <[email protected]>2009-04-07 17:56:40 -0600
commit105758105a790dd8466c6be8c232c3f215ca4dee (patch)
treecf37398f8f2245a2f351781babff6a2eae839b78 /src
parentb7615e5240707b022b81478dde545cec7fb9397f (diff)
st: implement glCopyTexImage() for GL_DEPTH24_STENCIL8 internal format
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 4d8adcd9cd6..8013e69e8e1 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -947,7 +947,8 @@ fallback_copy_texsubimage(GLcontext *ctx,
texDest = st_texture_image_map(ctx->st, stImage, 0, PIPE_TRANSFER_WRITE,
destX, destY, width, height);
- if (baseFormat == GL_DEPTH_COMPONENT) {
+ if (baseFormat == GL_DEPTH_COMPONENT ||
+ baseFormat == GL_DEPTH24_STENCIL8) {
const GLboolean scaleOrBias = (ctx->Pixel.DepthScale != 1.0F ||
ctx->Pixel.DepthBias != 0.0F);
GLint row, yStep;
@@ -1057,7 +1058,8 @@ st_copy_texsubimage(GLcontext *ctx,
st_finish(ctx->st);
/* determine if copying depth or color data */
- if (texBaseFormat == GL_DEPTH_COMPONENT) {
+ if (texBaseFormat == GL_DEPTH_COMPONENT ||
+ texBaseFormat == GL_DEPTH24_STENCIL8) {
strb = st_renderbuffer(fb->_DepthBuffer);
}
else if (texBaseFormat == GL_DEPTH_STENCIL_EXT) {