From 77fb0cd1abd2811f5b9c933376bdbcfd2e6360c5 Mon Sep 17 00:00:00 2001 From: Chris Sarbora Date: Thu, 1 Aug 2024 04:41:03 -0500 Subject: [PATCH] use GL_TRIANGLE_FAN instead of nonexistent GL_POLYGONS --- renderer/HardwareOpenGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/HardwareOpenGL.cpp b/renderer/HardwareOpenGL.cpp index 972f47d1..51a6a70e 100644 --- a/renderer/HardwareOpenGL.cpp +++ b/renderer/HardwareOpenGL.cpp @@ -1342,7 +1342,7 @@ void gpu_RenderPolygon(PosColorUVVertex *vData, uint32_t nv) { gRenderer->setTextureEnabled(1, false); // draw the data in the arrays - dglDrawArrays(GL_POLYGON, 0, nv); + dglDrawArrays(GL_TRIANGLE_FAN, 0, nv); if (gpu_state.cur_texture_quality == 0) { // re-enable textures @@ -1357,7 +1357,7 @@ void gpu_RenderPolygonUV2(PosColorUV2Vertex *vData, uint32_t nv) { gRenderer->setTextureEnabled(1, true); gRenderer->setVertexData(0, nv, vData); - dglDrawArrays(GL_POLYGON, 0, nv); + dglDrawArrays(GL_TRIANGLE_FAN, 0, nv); OpenGL_polys_drawn++; OpenGL_verts_processed += nv;