diff options
| author | raysan5 <raysan5@gmail.com> | 2019-11-04 13:40:59 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2019-11-04 13:40:59 +0100 |
| commit | 29b9b054dd5bd05f8ca81883cc95a9adea521299 (patch) | |
| tree | 7055a4ab38dac80732d2abfd9a3377e45e4f2b61 | |
| parent | e8b89b5ecf13b2138f2b212475d7192665206ac7 (diff) | |
| download | raylib-29b9b054dd5bd05f8ca81883cc95a9adea521299.tar.gz raylib-29b9b054dd5bd05f8ca81883cc95a9adea521299.zip | |
REVIEW: rlLoadTexture()
Corrected bug when loading a RenderTexture texture passing NULL data.
| -rw-r--r-- | src/rlgl.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 |
