diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-11-30 22:40:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-30 22:40:52 +0100 |
| commit | bf825f8ebd18615fdbecb449c14300105d469a24 (patch) | |
| tree | 2e9c3f075b124347eea974c9b429c06d5f29df78 /src/drivers/OpenGL | |
| parent | bc3bbb7ca028db377ec4b2acbe74d8f2c8a5c149 (diff) | |
Add a unit test for drawing complex shapes (#565)
Diffstat (limited to 'src/drivers/OpenGL')
| -rw-r--r-- | src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_vertex.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_vertex.cxx b/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_vertex.cxx index 7cd144ce6..b5ec90bf4 100644 --- a/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_vertex.cxx +++ b/src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver_vertex.cxx @@ -41,6 +41,7 @@ // double Fl_OpenGL_Graphics_Driver::transform_dy(double x, double y) void Fl_OpenGL_Graphics_Driver::begin_points() { + Fl_Graphics_Driver::begin_points(); glBegin(GL_POINTS); } @@ -49,6 +50,7 @@ void Fl_OpenGL_Graphics_Driver::end_points() { } void Fl_OpenGL_Graphics_Driver::begin_line() { + Fl_Graphics_Driver::begin_line(); glBegin(GL_LINE_STRIP); } @@ -57,6 +59,7 @@ void Fl_OpenGL_Graphics_Driver::end_line() { } void Fl_OpenGL_Graphics_Driver::begin_loop() { + Fl_Graphics_Driver::begin_loop(); glBegin(GL_LINE_LOOP); } @@ -65,6 +68,7 @@ void Fl_OpenGL_Graphics_Driver::end_loop() { } void Fl_OpenGL_Graphics_Driver::begin_polygon() { + Fl_Graphics_Driver::begin_polygon(); glBegin(GL_POLYGON); } @@ -73,6 +77,7 @@ void Fl_OpenGL_Graphics_Driver::end_polygon() { } void Fl_OpenGL_Graphics_Driver::begin_complex_polygon() { + Fl_Graphics_Driver::begin_complex_polygon(); glBegin(GL_POLYGON); } |
