summaryrefslogtreecommitdiffhomepage
path: root/src/shapes.c
diff options
context:
space:
mode:
authorRay <[email protected]>2016-06-17 00:29:46 +0200
committerRay <[email protected]>2016-06-17 00:29:46 +0200
commit9fdf4420d5354c32394246703015a686df8135ce (patch)
treec792e5c7dd8889b77eb6a87ac4b6b4a85fcd59a5 /src/shapes.c
parent4df7a0f2f8cf5c4dde236bd99d05d83c7b472db5 (diff)
downloadraylib-9fdf4420d5354c32394246703015a686df8135ce.tar.gz
raylib-9fdf4420d5354c32394246703015a686df8135ce.zip
Corrected bugs on OpenGL 2.1
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 3ccfd660..2a4e19c2 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -135,7 +135,7 @@ void DrawCircleV(Vector2 center, float radius, Color color)
}
rlEnd();
}
- else if ((rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
+ else if ((rlGetVersion() == OPENGL_21) || (rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
{
rlEnableTexture(GetDefaultTexture().id); // Default white texture
@@ -218,7 +218,7 @@ void DrawRectangleV(Vector2 position, Vector2 size, Color color)
rlVertex2i(position.x + size.x, position.y);
rlEnd();
}
- else if ((rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
+ else if ((rlGetVersion() == OPENGL_21) || (rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
{
rlEnableTexture(GetDefaultTexture().id); // Default white texture
@@ -264,7 +264,7 @@ void DrawRectangleLines(int posX, int posY, int width, int height, Color color)
rlVertex2i(posX + 1, posY + 1);
rlEnd();
}
- else if ((rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
+ else if ((rlGetVersion() == OPENGL_21) || (rlGetVersion() == OPENGL_33) || (rlGetVersion() == OPENGL_ES_20))
{
DrawRectangle(posX, posY, width, 1, color);
DrawRectangle(posX + width - 1, posY + 1, 1, height - 2, color);