aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-11-24 19:02:34 +0100
committerraysan5 <raysan5@gmail.com>2016-11-24 19:02:34 +0100
commit46ce30a2ebff0ce716adf9e291818d9477cccbbf (patch)
tree79aa7eb139d41dde34f05321b8924917f64d5bfe
parent44e21d84cd82da2e77800269e98f9d9bb41a90d8 (diff)
downloadraylib-46ce30a2ebff0ce716adf9e291818d9477cccbbf.tar.gz
raylib-46ce30a2ebff0ce716adf9e291818d9477cccbbf.zip
Corrected bugs for OpenGL 1.1 backend
-rw-r--r--src/rlgl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 629d7967..47e2a57d 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -318,6 +318,7 @@ static bool texCompETC1Supported = false; // ETC1 texture compression support
static bool texCompETC2Supported = false; // ETC2/EAC texture compression support
static bool texCompPVRTSupported = false; // PVR texture compression support
static bool texCompASTCSupported = false; // ASTC texture compression support
+#endif
// Extension supported flag: Anisotropic filtering
static bool texAnisotropicFilterSupported = false; // Anisotropic texture filtering support
@@ -325,7 +326,6 @@ static float maxAnisotropicLevel = 0.0f; // Maximum anisotropy level supp
// Extension supported flag: Clamp mirror wrap mode
static bool texClampMirrorSupported = false; // Clamp mirror wrap mode supported
-#endif
#if defined(RLGL_OCULUS_SUPPORT)
// OVR device variables
@@ -1733,7 +1733,7 @@ void rlglGenerateMipmaps(Texture2D *texture)
{
#if defined(GRAPHICS_API_OPENGL_11)
// Compute required mipmaps
- void *data = rlglReadTexturePixels(texture);
+ void *data = rlglReadTexturePixels(*texture);
// NOTE: data size is reallocated to fit mipmaps data
// NOTE: CPU mipmap generation only supports RGBA 32bit data