aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_OpenGL.cpp
diff options
context:
space:
mode:
authorWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-05-03 13:36:21 +0100
committerWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-05-03 13:40:44 +0100
commit2ff065e5eab38165b4f3380284f58bc8019d8712 (patch)
treef40ffe2564979b0a3d50942a893c0e7b72fdb5b6 /src/GPU3D_OpenGL.cpp
parentcc36f55b8ca18ea32a29ceaa96d5e9022b4af301 (diff)
Fix some compiler warnings
Diffstat (limited to 'src/GPU3D_OpenGL.cpp')
-rw-r--r--src/GPU3D_OpenGL.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index c67cc00..ccac08a 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -508,7 +508,7 @@ void GLRenderer::BuildPolygons(GLRenderer::RendererPolygon* polygons, int npolys
u32 lastx, lasty;
int nout = 0;
- for (int j = 0; j < poly->NumVertices; j++)
+ for (u32 j = 0; j < poly->NumVertices; j++)
{
Vertex* vtx = poly->Vertices[j];
@@ -557,7 +557,7 @@ void GLRenderer::BuildPolygons(GLRenderer::RendererPolygon* polygons, int npolys
{
// regular triangle-splitting
- for (int j = 0; j < poly->NumVertices; j++)
+ for (u32 j = 0; j < poly->NumVertices; j++)
{
Vertex* vtx = poly->Vertices[j];
@@ -588,7 +588,7 @@ void GLRenderer::BuildPolygons(GLRenderer::RendererPolygon* polygons, int npolys
float cR = 0, cG = 0, cB = 0;
float cS = 0, cT = 0;
- for (int j = 0; j < poly->NumVertices; j++)
+ for (u32 j = 0; j < poly->NumVertices; j++)
{
Vertex* vtx = poly->Vertices[j];
@@ -651,7 +651,7 @@ void GLRenderer::BuildPolygons(GLRenderer::RendererPolygon* polygons, int npolys
vidx++;
// build the final polygon
- for (int j = 0; j < poly->NumVertices; j++)
+ for (u32 j = 0; j < poly->NumVertices; j++)
{
Vertex* vtx = poly->Vertices[j];
@@ -680,7 +680,7 @@ void GLRenderer::BuildPolygons(GLRenderer::RendererPolygon* polygons, int npolys
rp->NumEdgeIndices = 0;
u32 vidx_cur = vidx_first;
- for (int j = 1; j < poly->NumVertices; j++)
+ for (u32 j = 1; j < poly->NumVertices; j++)
{
IndexBuffer[eidx++] = vidx_cur;
IndexBuffer[eidx++] = vidx_cur + 1;
@@ -1259,7 +1259,7 @@ void GLRenderer::RenderFrame()
int npolys = 0;
int firsttrans = -1;
- for (int i = 0; i < RenderNumPolygons; i++)
+ for (u32 i = 0; i < RenderNumPolygons; i++)
{
if (RenderPolygonRAM[i]->Degenerate) continue;