diff options
Diffstat (limited to 'video/out/opengl/context_w32.c')
-rw-r--r-- | video/out/opengl/context_w32.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/video/out/opengl/context_w32.c b/video/out/opengl/context_w32.c index c647d97e5c..3a0118e420 100644 --- a/video/out/opengl/context_w32.c +++ b/video/out/opengl/context_w32.c @@ -209,14 +209,6 @@ static void create_ctx(void *ptr) if (!w32_ctx->context) create_context_w32_old(ctx); - int pfmt = GetPixelFormat(w32_ctx->hdc); - PIXELFORMATDESCRIPTOR pfd; - if (DescribePixelFormat(w32_ctx->hdc, pfmt, sizeof(pfd), &pfd)) { - ctx->gl->fb_r = pfd.cRedBits; - ctx->gl->fb_g = pfd.cGreenBits; - ctx->gl->fb_b = pfd.cBlueBits; - } - wglMakeCurrent(w32_ctx->hdc, NULL); } |