Generate a size event for wxGLCanvas when it is realized

This ensures that a wxSizeEvent handler can set the initial viewport size correctly.
Fixes the initial display of the pyramid sample with GTK2.
This commit is contained in:
Paul Cornett
2019-06-12 22:19:17 -07:00
parent 7d5b467633
commit 780b8720c0
2 changed files with 9 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
{
typedef wxGLCanvasX11 BaseType;
public:
wxGLCanvas(wxWindow *parent,
const wxGLAttributes& dispAttrs,
@@ -110,6 +111,7 @@ public:
// implementation from now on
void OnInternalIdle() wxOVERRIDE;
virtual void GTKHandleRealized() wxOVERRIDE;
bool m_exposed;
#ifdef __WXGTK3__