Quellcode durchsuchen

Fix activeTextureId to have MAX_BATCH_ACTIVE_TEXTURES elements instead of the hardcoded 4 (#1674)

pull/1675/head
Victor vor 4 Jahren
committed von GitHub
Ursprung
Commit
c5b0a1f005
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/rlgl.h

+ 1
- 1
src/rlgl.h Datei anzeigen

@ -825,7 +825,7 @@ typedef struct rlglData {
Texture2D shapesTexture; // Texture used on shapes drawing (usually a white pixel)
Rectangle shapesTextureRec; // Texture source rectangle used on shapes drawing
unsigned int defaultTextureId; // Default texture used on shapes/poly drawing (required by shader)
unsigned int activeTextureId[mi">4]; // Active texture ids to be enabled on batch drawing (0 active by default)
unsigned int activeTextureId[n">MAX_BATCH_ACTIVE_TEXTURES]; // Active texture ids to be enabled on batch drawing (0 active by default)
unsigned int defaultVShaderId; // Default vertex shader id (used by default shader program)
unsigned int defaultFShaderId; // Default fragment shader Id (used by default shader program)
Shader defaultShader; // Basic shader, support vertex color and diffuse texture

Laden…
Abbrechen
Speichern