summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-09-11 21:39:50 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-09-11 22:41:14 +0200
commita84fd1c44aaae58a80d21b18303adc28ca6d9348 (patch)
tree1d8293ea3349006f7ad9c032dc02da2f01f3b022 /video
parentb789ef5e8ee94bb021c9c64432e4ede73f0a9c27 (diff)
downloadmpv-a84fd1c44aaae58a80d21b18303adc28ca6d9348.tar.bz2
mpv-a84fd1c44aaae58a80d21b18303adc28ca6d9348.tar.xz
gl_32: mp_msg conversion
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_w32.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/video/out/gl_w32.c b/video/out/gl_w32.c
index c9e2be4d44..8b21e25277 100644
--- a/video/out/gl_w32.c
+++ b/video/out/gl_w32.c
@@ -55,12 +55,12 @@ static bool create_context_w32_old(struct MPGLContext *ctx)
HGLRC new_context = wglCreateContext(windc);
if (!new_context) {
- mp_msg(MSGT_VO, MSGL_FATAL, "[gl] Could not create GL context!\n");
+ MP_FATAL(ctx->vo, "Could not create GL context!\n");
goto out;
}
if (!wglMakeCurrent(windc, new_context)) {
- mp_msg(MSGT_VO, MSGL_FATAL, "[gl] Could not set GL context!\n");
+ MP_FATAL(ctx->vo, "Could not set GL context!\n");
wglDeleteContext(new_context);
goto out;
}
@@ -89,13 +89,13 @@ static bool create_context_w32_gl3(struct MPGLContext *ctx)
new_context = wglCreateContext(windc);
if (!new_context) {
- mp_msg(MSGT_VO, MSGL_FATAL, "[gl] Could not create GL context!\n");
+ MP_FATAL(ctx->vo, "Could not create GL context!\n");
return false;
}
// set context
if (!wglMakeCurrent(windc, new_context)) {
- mp_msg(MSGT_VO, MSGL_FATAL, "[gl] Could not set GL context!\n");
+ MP_FATAL(ctx->vo, "Could not set GL context!\n");
goto out;
}
@@ -135,8 +135,7 @@ static bool create_context_w32_gl3(struct MPGLContext *ctx)
}
if (! *context) {
int err = GetLastError();
- mp_msg(MSGT_VO, MSGL_FATAL, "[gl] Could not create an OpenGL 3.x"
- " context: error 0x%x\n", err);
+ MP_FATAL(ctx->vo, "Could not create an OpenGL 3.x context: error 0x%x\n", err);
goto out;
}
@@ -144,7 +143,7 @@ static bool create_context_w32_gl3(struct MPGLContext *ctx)
wglDeleteContext(new_context);
if (!wglMakeCurrent(windc, *context)) {
- mp_msg(MSGT_VO, MSGL_FATAL, "[gl] Could not set GL3 context!\n");
+ MP_FATAL(ctx->vo, "Could not set GL3 context!\n");
wglDeleteContext(*context);
return false;
}
@@ -163,8 +162,7 @@ static bool create_context_w32_gl3(struct MPGLContext *ctx)
return true;
unsupported:
- mp_msg(MSGT_VO, MSGL_ERR, "[gl] The current OpenGL implementation does"
- " not support OpenGL 3.x \n");
+ MP_ERR(ctx->vo, "The current OpenGL implementation does not support OpenGL 3.x \n");
out:
wglDeleteContext(new_context);
return false;