From 3fe0074677b6537008a3175cd8632d988a977c80 Mon Sep 17 00:00:00 2001 From: osa Date: Fri, 28 Feb 2014 10:17:21 +0400 Subject: [PATCH] 0024671: TKOpenGl, OpenGl_Context - glGetPointerv might be called without GL context --- src/OpenGl/OpenGl_Context.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index 4baaaf1099..f577e7e5b4 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -146,7 +146,8 @@ OpenGl_Context::~OpenGl_Context() myDelayed.Nullify(); if (arbDbg != NULL - && caps->contextDebug) + && caps->contextDebug + && IsValid()) { // reset callback void* aPtr = NULL;