summaryrefslogtreecommitdiff
path: root/examples/OpenGL3test.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-05-05 19:25:01 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-05-05 19:33:28 +0200
commit38e1d6b099e8a19271f023ec31f98bb9c7a39e40 (patch)
tree0d7a3c56c9bc97741ec094e8af3015fdf0180581 /examples/OpenGL3test.cxx
parentdea8a93bc2dc359bbcfd33889592660ee0089075 (diff)
Fix Visual Studio compiler warnings, make output visible...
on Windows w/o a console device ("DOS"/Debug window) if OpenGL3 is not available.
Diffstat (limited to 'examples/OpenGL3test.cxx')
-rw-r--r--examples/OpenGL3test.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/OpenGL3test.cxx b/examples/OpenGL3test.cxx
index 5f373635b..deaf2ec8f 100644
--- a/examples/OpenGL3test.cxx
+++ b/examples/OpenGL3test.cxx
@@ -1,7 +1,7 @@
//
// Tiny OpenGL v3 demo program for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2022 by Bill Spitzak and others.
+// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -132,7 +132,7 @@ public:
else if ((!valid())) {
glViewport(0, 0, pixel_w(), pixel_h());
}
- glClearColor(0.08, 0.8, 0.8, 1.0);
+ glClearColor(0.08f, 0.8f, 0.8f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
if (shaderProgram) {
GLfloat p[]={0,0};
@@ -172,7 +172,7 @@ public:
if (retval) return retval;
if (event == FL_PUSH && gl_version_major >= 3) {
- static float factor = 1.1;
+ static float factor = 1.1f;
GLfloat data[4];
glGetBufferSubData(GL_ARRAY_BUFFER, 0, 4*sizeof(GLfloat), data);
if (data[0] < -0.88 || data[0] > -0.5) factor = 1/factor;