mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed initial context reference count.
This commit is contained in:
parent
c9241b83f9
commit
b220e7c702
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,6 @@ struct GLWindowPrivate
|
|||
{
|
||||
GtkWidget *widget;
|
||||
LC_CURSOR_TYPE Cursor;
|
||||
// bool Multisample;
|
||||
};
|
||||
|
||||
static Display* WindowDisplay = NULL;
|
||||
|
@ -218,6 +217,8 @@ bool GLWindow::CreateFromWindow(void *data)
|
|||
printf("OpenGL fatal error: Cannot create context.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
WindowContextCount = 1;
|
||||
}
|
||||
|
||||
gtk_widget_push_colormap(gdk_colormap_new(WindowGdkVisual, TRUE));
|
||||
|
|
Loading…
Reference in a new issue