mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
0024671: TKOpenGl, OpenGl_Context - glGetPointerv might be called without GL context
This commit is contained in:
parent
938bb74003
commit
f8c8ba7a6d
@ -148,7 +148,8 @@ OpenGl_Context::~OpenGl_Context()
|
|||||||
myDelayed.Nullify();
|
myDelayed.Nullify();
|
||||||
|
|
||||||
if (arbDbg != NULL
|
if (arbDbg != NULL
|
||||||
&& caps->contextDebug)
|
&& caps->contextDebug
|
||||||
|
&& IsValid())
|
||||||
{
|
{
|
||||||
// reset callback
|
// reset callback
|
||||||
void* aPtr = NULL;
|
void* aPtr = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user