aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-08-29 20:20:28 +0200
committerraysan5 <raysan5@gmail.com>2015-08-29 20:20:28 +0200
commit055d8927cccbc2b7b4dd5d6f6928159ba3fff2e6 (patch)
treede02e87169ca1e5a16c8074e6588600a902b1c3d /src
parent8692c495110f650405eb2dd54d5de101880533af (diff)
downloadraylib-055d8927cccbc2b7b4dd5d6f6928159ba3fff2e6.tar.gz
raylib-055d8927cccbc2b7b4dd5d6f6928159ba3fff2e6.zip
Small code tweaks
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
-rw-r--r--src/rlgl.c6
-rw-r--r--src/rlgl.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core.c b/src/core.c
index 8d832fd2..1ebc8a8f 100644
--- a/src/core.c
+++ b/src/core.c
@@ -638,6 +638,7 @@ void ShowLogo(void)
showLogo = true;
}
+#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
// Check if a file have been dropped into window
bool IsFileDropped(void)
{
@@ -664,6 +665,7 @@ void ClearDroppedFiles(void)
dropFilesCount = 0;
}
}
+#endif
// TODO: Gives the ray trace from mouse position
Ray GetMouseRay(Vector2 mousePosition, Camera camera)
diff --git a/src/rlgl.c b/src/rlgl.c
index 12eb7a9e..7fa50af6 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -4,8 +4,8 @@
*
* raylib now uses OpenGL 1.1 style functions (rlVertex) that are mapped to selected OpenGL version:
* OpenGL 1.1 - Direct map rl* -> gl*
-* OpenGL 3.3+ - Vertex data is stored in VAOs, call rlglDraw() to render
-* OpenGL ES 2 - Same behaviour as OpenGL 3.3+
+* OpenGL 3.3 - Vertex data is stored in VAOs, call rlglDraw() to render
+* OpenGL ES 2 - Vertex data is stored in VBOs or VAOs (when available), call rlglDraw() to render
*
* Copyright (c) 2014 Ramon Santamaria (@raysan5)
*
@@ -3061,8 +3061,6 @@ static pixel *GenNextMipmap(pixel *srcData, int srcWidth, int srcHeight)
#if defined(RLGL_STANDALONE)
-typedef enum { INFO = 0, ERROR, WARNING, DEBUG, OTHER } TraceLogType;
-
// Output a trace log message
// NOTE: Expected msgType: (0)Info, (1)Error, (2)Warning
static void TraceLog(int msgType, const char *text, ...)
diff --git a/src/rlgl.h b/src/rlgl.h
index af312596..cd999bf5 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -4,7 +4,7 @@
*
* raylib now uses OpenGL 1.1 style functions (rlVertex) that are mapped to selected OpenGL version:
* OpenGL 1.1 - Direct map rl* -> gl*
-* OpenGL 3.3+ - Vertex data is stored in VAOs, call rlglDraw() to render
+* OpenGL 3.3 - Vertex data is stored in VAOs, call rlglDraw() to render
* OpenGL ES 2 - Vertex data is stored in VBOs or VAOs (when available), call rlglDraw() to render
*
* Copyright (c) 2014 Ramon Santamaria (@raysan5)