summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_gl.c3
-rw-r--r--libvo/vo_gl2.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index a281611c4c..efeef5c02f 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -571,7 +571,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
glconfig:
if (vo_config_count)
uninitGl();
- setGlWindow(&gl_vinfo, &gl_context, vo_window);
+ if (setGlWindow(&gl_vinfo, &gl_context, vo_window) == SET_WINDOW_FAILED)
+ return -1;
initGl(vo_dwidth, vo_dheight);
return 0;
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 654b34942a..a5e6050f44 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -637,7 +637,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
#endif
return -1;
- setGlWindow(&gl_vinfo, &gl_context, vo_window);
+ if (setGlWindow(&gl_vinfo, &gl_context, vo_window) == SET_WINDOW_FAILED)
+ return -1;
glVersion = glGetString(GL_VERSION);