diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-04 18:42:45 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-04 18:42:45 +0200 |
| commit | 9b7f020ed35ebb0711ceb633aa8accbb0512ffe2 (patch) | |
| tree | 40232c15a8fb9e790d11b2adb965bedf667a8ace /examples/OpenGL3test.cxx | |
| parent | 7a3af40ede5cbd325775eb4ffdef9ff28bcad191 (diff) | |
Update procedure for OpenGL3 support.
Diffstat (limited to 'examples/OpenGL3test.cxx')
| -rw-r--r-- | examples/OpenGL3test.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/OpenGL3test.cxx b/examples/OpenGL3test.cxx index ca880d22f..b8fe670d5 100644 --- a/examples/OpenGL3test.cxx +++ b/examples/OpenGL3test.cxx @@ -49,6 +49,7 @@ public: SimpleGL3Window(int x, int y, int w, int h) : Fl_Gl_Window(x, y, w, h) { mode(FL_RGB8 | FL_DOUBLE | FL_OPENGL3); shaderProgram = 0; + gl_version_major = 0; } void draw(void) { if (gl_version_major < 3) return; @@ -154,6 +155,7 @@ public: add_output("GL_VERSION=%s\n", glv); sscanf((const char *)glv, "%d", &gl_version_major); if (gl_version_major < 3) add_output("\nThis platform does not support OpenGL V3\n\n"); + redraw(); } if (event == FL_PUSH && gl_version_major >= 3) { |
