aboutsummaryrefslogtreecommitdiff
path: root/src/shapes.c
diff options
context:
space:
mode:
authorJoão Coelho <jotac0@users.noreply.github.com>2019-10-29 14:57:19 +0000
committerRay <raysan5@gmail.com>2019-10-29 15:57:19 +0100
commit75b0264f35d8895c1e64c7c7bc85d1572d167cf2 (patch)
treed02dd8ce1f168e60c5f7e9551b9dca1101fdf51b /src/shapes.c
parent64c588e9d8e9cb34da4fe592ae091d62f59d6853 (diff)
downloadraylib-75b0264f35d8895c1e64c7c7bc85d1572d167cf2.tar.gz
raylib-75b0264f35d8895c1e64c7c7bc85d1572d167cf2.zip
fix various problems, thanks CppCheck :) (#1005)
* explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 4fd4eff5..fc0fb00c 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -1524,7 +1524,7 @@ static float EaseCubicInOut(float t, float b, float c, float d)
// Get texture to draw shapes (RAII)
static Texture2D GetShapesTexture(void)
{
- if (texShapes.id <= 0)
+ if (texShapes.id == 0) //this variable is an unsigned int, will never be negative
{
#if defined(SUPPORT_FONT_TEXTURE)
texShapes = GetFontDefault().texture; // Use font texture white character