summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/dxinterop.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/dxinterop.c')
-rw-r--r--video/out/opengl/dxinterop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/opengl/dxinterop.c b/video/out/opengl/dxinterop.c
index bc302629aa..093729351d 100644
--- a/video/out/opengl/dxinterop.c
+++ b/video/out/opengl/dxinterop.c
@@ -275,17 +275,17 @@ static int d3d_size_dependent_create(MPGLContext *ctx)
// work is needed.
switch (bb_desc.Format) {
case D3DFMT_X1R5G5B5: case D3DFMT_A1R5G5B5:
- ctx->depth_r = ctx->depth_g = ctx->depth_b = 5;
+ ctx->gl->fb_r = ctx->gl->fb_g = ctx->gl->fb_b = 5;
break;
case D3DFMT_R5G6B5:
- ctx->depth_r = 5; ctx->depth_g = 6; ctx->depth_b = 5;
+ ctx->gl->fb_r = 5; ctx->gl->fb_g = 6; ctx->gl->fb_b = 5;
break;
case D3DFMT_R8G8B8: case D3DFMT_A8R8G8B8: case D3DFMT_X8R8G8B8:
case D3DFMT_A8B8G8R8: case D3DFMT_X8B8G8R8: default:
- ctx->depth_r = ctx->depth_g = ctx->depth_b = 8;
+ ctx->gl->fb_r = ctx->gl->fb_g = ctx->gl->fb_b = 8;
break;
case D3DFMT_A2R10G10B10: case D3DFMT_A2B10G10R10:
- ctx->depth_r = ctx->depth_g = ctx->depth_b = 10;
+ ctx->gl->fb_r = ctx->gl->fb_g = ctx->gl->fb_b = 10;
break;
}