Pārlūkot izejas kodu

fix so ES2 isn't broken with the change

pull/5500/head
SlateyDev pirms 1 nedēļas
vecāks
revīzija
06c5b17617
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      src/rlgl.h

+ 4
- 0
src/rlgl.h Parādīt failu

@ -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

Notiek ielāde…
Atcelt
Saglabāt