0032970: Visualization, TKOpenGl - fix compilation on Linux: 'False' was not declared
authorkgv <kgv@opencascade.com>
Sat, 14 May 2022 22:11:06 +0000 (01:11 +0300)
committerkgv <kgv@opencascade.com>
Sat, 14 May 2022 22:11:06 +0000 (01:11 +0300)
src/OpenGl/OpenGl_Context.cxx

index d501804..90de0f2 100644 (file)
@@ -1818,7 +1818,7 @@ void OpenGl_Context::MemoryInfo (TColStd_IndexedDataMapOfStringString& theDict)
   if (myFuncs->glXQueryCurrentRendererIntegerMESA != NULL)
   {
     unsigned int aVMemMiB = 0;
-    if (myFuncs->glXQueryCurrentRendererIntegerMESA (GLX_RENDERER_VIDEO_MEMORY_MESA, &aVMemMiB) != False)
+    if (myFuncs->glXQueryCurrentRendererIntegerMESA (GLX_RENDERER_VIDEO_MEMORY_MESA, &aVMemMiB) != 0)
     {
       addInfo (theDict, "GPU memory", TCollection_AsciiString() + int(aVMemMiB) + " MiB");
     }