mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 21:56:13 +00:00
Changed: Display unknown status in FBO errors messages
This commit is contained in:
parent
aac3d77f90
commit
d4c950089a
1 changed files with 3 additions and 3 deletions
|
@ -201,7 +201,7 @@ bool CTextureDrvInfosGL::initFrameBufferObject(ITexture * tex)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
nlwarning("Framebuffer incomplete\n");
|
nlwarning("Framebuffer incomplete status %d", (sint)status);
|
||||||
//nlassert(0);
|
//nlassert(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ static inline GLenum translateMinFilterToGl(CTextureDrvInfosGL *glText)
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
static inline bool sameDXTCFormat(ITexture &tex, GLint glfmt)
|
static inline bool sameDXTCFormat(ITexture &tex, GLint glfmt)
|
||||||
{
|
{
|
||||||
H_AUTO_OGL(sameDXTCFormat)
|
H_AUTO_OGL(sameDXTCFormat);
|
||||||
if(glfmt==GL_COMPRESSED_RGB_S3TC_DXT1_EXT && tex.PixelFormat==CBitmap::DXTC1)
|
if(glfmt==GL_COMPRESSED_RGB_S3TC_DXT1_EXT && tex.PixelFormat==CBitmap::DXTC1)
|
||||||
return true;
|
return true;
|
||||||
if(glfmt==GL_COMPRESSED_RGBA_S3TC_DXT1_EXT && tex.PixelFormat==CBitmap::DXTC1Alpha)
|
if(glfmt==GL_COMPRESSED_RGBA_S3TC_DXT1_EXT && tex.PixelFormat==CBitmap::DXTC1Alpha)
|
||||||
|
@ -521,7 +521,7 @@ static inline bool sameDXTCFormat(ITexture &tex, GLint glfmt)
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
static inline bool isDXTCFormat(GLint glfmt)
|
static inline bool isDXTCFormat(GLint glfmt)
|
||||||
{
|
{
|
||||||
H_AUTO_OGL(isDXTCFormat)
|
H_AUTO_OGL(isDXTCFormat);
|
||||||
if(glfmt==GL_COMPRESSED_RGB_S3TC_DXT1_EXT)
|
if(glfmt==GL_COMPRESSED_RGB_S3TC_DXT1_EXT)
|
||||||
return true;
|
return true;
|
||||||
if(glfmt==GL_COMPRESSED_RGBA_S3TC_DXT1_EXT)
|
if(glfmt==GL_COMPRESSED_RGBA_S3TC_DXT1_EXT)
|
||||||
|
|
Loading…
Reference in a new issue