Explorar el Código

fix so ES2 isn't broken with the change

pull/5500/head
SlateyDev hace 1 semana
padre
commit
06c5b17617
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/rlgl.h

+ 4
- 0
src/rlgl.h Ver fichero

@ -3429,7 +3429,11 @@ unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer)
{
if (RLGL.ExtSupported.maxDepthBits == 32) glInternalFormat = GL_DEPTH_COMPONENT32_OES;
else if (RLGL.ExtSupported.maxDepthBits == 24) glInternalFormat = GL_DEPTH_COMPONENT24_OES;
#if !defined(GRAPHICS_API_OPENGL_ES3)
else if (useRenderBuffer) glInternalFormat = GL_DEPTH_COMPONENT16;
#else
else glInternalFormat = GL_DEPTH_COMPONENT16;
#endif
}
#endif

Cargando…
Cancelar
Guardar