Kaynağa Gözat

REVIEW: rlLoadTexture()

Corrected bug when loading a RenderTexture texture passing NULL data.
pull/1009/head
raysan5 6 yıl önce
ebeveyn
işleme
29b9b054dd
1 değiştirilmiş dosya ile 0 ekleme ve 6 silme
  1. +0
    -6
      src/rlgl.h

+ 0
- 6
src/rlgl.h Dosyayı Görüntüle

@ -1887,12 +1887,6 @@ unsigned int rlLoadTexture(void *data, int width, int height, int format, int mi
#endif
#endif // GRAPHICS_API_OPENGL_11
if (data == NULL)
{
TraceLog(LOG_WARNING, "Got asked to load texture from a NULL pointer!");
return id;
}
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glGenTextures(1, &id); // Generate texture id

Yükleniyor…
İptal
Kaydet