aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2019-11-04 13:40:59 +0100
committerraysan5 <raysan5@gmail.com>2019-11-04 13:40:59 +0100
commit29b9b054dd5bd05f8ca81883cc95a9adea521299 (patch)
tree7055a4ab38dac80732d2abfd9a3377e45e4f2b61
parente8b89b5ecf13b2138f2b212475d7192665206ac7 (diff)
downloadraylib-29b9b054dd5bd05f8ca81883cc95a9adea521299.tar.gz
raylib-29b9b054dd5bd05f8ca81883cc95a9adea521299.zip
REVIEW: rlLoadTexture()
Corrected bug when loading a RenderTexture texture passing NULL data.
-rw-r--r--src/rlgl.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index d62099d1..b83da6e8 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1887,12 +1887,6 @@ unsigned int rlLoadTexture(void *data, int width, int height, int format, int mi
#endif
#endif // GRAPHICS_API_OPENGL_11
- if (data == NULL)
- {
- TraceLog(LOG_WARNING, "Got asked to load texture from a NULL pointer!");
- return id;
- }
-
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glGenTextures(1, &id); // Generate texture id