Commit 8f33e89d authored by Yannick Verdie's avatar Yannick Verdie

working on OpenGL for Windows

parent 7ce53ada
......@@ -519,7 +519,8 @@ if (WITH_QT)
add_definitions(-DHAVE_QT)#We need to define te macro this way, using cvconfig.h.cmake does not work
find_package (OpenGL QUIET)
if (NOT WIN32) #WIN32 always detect OpenGL, so I disabled it.
#if (NOT WIN32) #WIN32 always detect OpenGL, so I disabled it.
if (OPENGL_INCLUDE_DIR)
if (QT_QTOPENGL_FOUND AND OPENGL_FOUND)
set(HAVE_QT_OPENGL 1)
add_definitions(-DHAVE_QT_OPENGL)
......
......@@ -690,6 +690,9 @@ void GuiReceiver::isLastWindow()
GuiReceiver::~GuiReceiver()
{
if (global_control_panel)
delete global_control_panel;
delete timer;
}
......@@ -1394,6 +1397,8 @@ CvWindow::CvWindow(QString arg, int arg2)
CvWindow::~CvWindow()
{
printf("delete w\n");
QLayoutItem *child;
if (myGlobalLayout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment