mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
use GL_TRIANGLE_FAN instead of nonexistent GL_POLYGONS
This commit is contained in:
parent
a06e78074f
commit
77fb0cd1ab
@ -1342,7 +1342,7 @@ void gpu_RenderPolygon(PosColorUVVertex *vData, uint32_t nv) {
|
|||||||
gRenderer->setTextureEnabled(1, false);
|
gRenderer->setTextureEnabled(1, false);
|
||||||
|
|
||||||
// draw the data in the arrays
|
// draw the data in the arrays
|
||||||
dglDrawArrays(GL_POLYGON, 0, nv);
|
dglDrawArrays(GL_TRIANGLE_FAN, 0, nv);
|
||||||
|
|
||||||
if (gpu_state.cur_texture_quality == 0) {
|
if (gpu_state.cur_texture_quality == 0) {
|
||||||
// re-enable textures
|
// re-enable textures
|
||||||
@ -1357,7 +1357,7 @@ void gpu_RenderPolygonUV2(PosColorUV2Vertex *vData, uint32_t nv) {
|
|||||||
gRenderer->setTextureEnabled(1, true);
|
gRenderer->setTextureEnabled(1, true);
|
||||||
gRenderer->setVertexData(0, nv, vData);
|
gRenderer->setVertexData(0, nv, vData);
|
||||||
|
|
||||||
dglDrawArrays(GL_POLYGON, 0, nv);
|
dglDrawArrays(GL_TRIANGLE_FAN, 0, nv);
|
||||||
OpenGL_polys_drawn++;
|
OpenGL_polys_drawn++;
|
||||||
OpenGL_verts_processed += nv;
|
OpenGL_verts_processed += nv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user