aboutsummaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/font.cpp4
-rw-r--r--src/render/graphics.cpp2
-rw-r--r--src/render/jsl.cpp3
3 files changed, 4 insertions, 5 deletions
diff --git a/src/render/font.cpp b/src/render/font.cpp
index 1c13a34..39d1e4e 100644
--- a/src/render/font.cpp
+++ b/src/render/font.cpp
@@ -97,7 +97,7 @@ namespace render
float factor = fheight / (float)PIXEL_HEIGHT;
- for (int i = 0; i < len; i++)
+ for (int i = 0; i < len; ++i)
{
char c = text[i];
if (c == '\n')
@@ -166,7 +166,7 @@ namespace render
float factor = fheight / (float)PIXEL_HEIGHT;
- for (int i = 0; i < len; i++)
+ for (int i = 0; i < len; ++i)
{
char c = str[i];
if (c == '\n')
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 21bb0ec..15d8a9c 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -79,7 +79,7 @@ namespace render
void polygon_line(float* p, int count)
{
float* verts = new float[count * 4];
- for (int i = 0; i < count; i++)
+ for (int i = 0; i < count; ++i)
{
// each line has two point n,n+1
verts[i * 4] = p[i * 2];
diff --git a/src/render/jsl.cpp b/src/render/jsl.cpp
index 5bb9347..6fcee53 100644
--- a/src/render/jsl.cpp
+++ b/src/render/jsl.cpp
@@ -55,10 +55,9 @@ namespace render
glUseProgram(pid);
}
- void JSLProgram::unuse()
+ shared void JSLProgram::unuse()
{
glUseProgram(0);
-
}
void JSLProgram::sendFloat(const char* variable, float number)