Parcourir la source

REVIEWED: `rLoadTextureDepth()` fixed issue

pull/2853/head
Ray il y a 2 ans
Parent
révision
89755e52bf
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/rlgl.h

+ 1
- 1
src/rlgl.h Voir le fichier

@ -2993,7 +2993,7 @@ unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer)
#if defined(GRAPHICS_API_OPENGL_ES2)
// WARNING: WebGL platform requires unsized internal format definition (GL_DEPTH_COMPONENT)
// while other platforms using OpenGL ES 2.0 require/support sized internal formats depending on the GPU capabilities
if (!RLGL.ExtSupported.texDepthWebGL)
if (!RLGL.ExtSupported.texDepthWebGL || useRenderBuffer)
{
if (RLGL.ExtSupported.maxDepthBits == 32) glInternalFormat = GL_DEPTH_COMPONENT32_OES;
else if (RLGL.ExtSupported.maxDepthBits == 24) glInternalFormat = GL_DEPTH_COMPONENT24_OES;

Chargement…
Annuler
Enregistrer