From e740fd4aeb8496082332cbaccaad7ddcd6a6f5ef Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sat, 31 Aug 2013 03:44:55 +0200 Subject: [PATCH] Don't crash when releasing. --HG-- branch : gsoc2013-dfighter --- code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp b/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp index fe620f4f2..cb3c6c844 100644 --- a/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp +++ b/code/nel/src/3d/driver/OpenGL3/driver_opengl_program.cpp @@ -215,6 +215,8 @@ namespace NL3D p = NULL; vp = NULL; pp = NULL; + currentProgram = NULL; + _VertexProgramEnabled = false; } }