From b29441f22e1f6d795f19b690ba83c1710e9f12f4 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 27 May 2016 22:16:29 +0200 Subject: [PATCH] Changed: Display a warning if setSwapVBLInterval is called before OpenGL initialization --HG-- branch : develop --- code/nel/src/3d/driver/opengl/driver_opengl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index 36fc7180b..db0100167 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -2288,7 +2288,10 @@ void CDriverGL::setSwapVBLInterval(uint interval) H_AUTO_OGL(CDriverGL_setSwapVBLInterval); if (!_Initialized) + { + nlwarning("OpenGL driver not initialized when calling setSwapVBLInterval"); return; + } bool res = true;