mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-30 18:59:18 -05:00
minor tweak
This commit is contained in:
@ -2712,10 +2712,10 @@ bool rlCheckRenderBatchLimit(int vCount)
|
|||||||
// Convert image data to OpenGL texture (returns OpenGL valid Id)
|
// Convert image data to OpenGL texture (returns OpenGL valid Id)
|
||||||
unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount)
|
unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount)
|
||||||
{
|
{
|
||||||
glBindTexture(GL_TEXTURE_2D, 0); // Free any old binding
|
|
||||||
|
|
||||||
unsigned int id = 0;
|
unsigned int id = 0;
|
||||||
|
|
||||||
|
glBindTexture(GL_TEXTURE_2D, 0); // Free any old binding
|
||||||
|
|
||||||
// Check texture format support by OpenGL 1.1 (compressed textures not supported)
|
// Check texture format support by OpenGL 1.1 (compressed textures not supported)
|
||||||
#if defined(GRAPHICS_API_OPENGL_11)
|
#if defined(GRAPHICS_API_OPENGL_11)
|
||||||
if (format >= RL_PIXELFORMAT_COMPRESSED_DXT1_RGB)
|
if (format >= RL_PIXELFORMAT_COMPRESSED_DXT1_RGB)
|
||||||
|
|||||||
Reference in New Issue
Block a user