From: osa Date: Fri, 28 Feb 2014 06:17:21 +0000 (+0400) Subject: 0024671: TKOpenGl, OpenGl_Context - glGetPointerv might be called without GL context X-Git-Tag: V6_7_1_beta~55 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3fe0074677b6537008a3175cd8632d988a977c80;p=occt-copy.git 0024671: TKOpenGl, OpenGl_Context - glGetPointerv might be called without GL context --- 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;