More WIN32 fixes.
This commit is contained in:
@@ -245,7 +245,7 @@ void _wglGetLastError()
|
|||||||
0,
|
0,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
SG_LOG(SG_GL, SG_ALERT, "RenderTexture Win32 Error %d: %s", err, lpMsgBuf);
|
SG_LOG(SG_GL, SG_ALERT, "RenderTexture Win32 Error " << err << ":" << lpMsgBuf);
|
||||||
LocalFree( lpMsgBuf );
|
LocalFree( lpMsgBuf );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -447,14 +447,13 @@ bool RenderTexture::Initialize(int width, int height,
|
|||||||
? (value?true:false) : false;
|
? (value?true:false) : false;
|
||||||
|
|
||||||
#if defined(_DEBUG) | defined(DEBUG)
|
#if defined(_DEBUG) | defined(DEBUG)
|
||||||
SG_LOG(SG_GL, SG_ALERT, "Created a %dx%d RenderTexture with BPP(%d, %d, %d, %d)",
|
SG_LOG(SG_GL, SG_ALERT, "Created a " << _iWidth << "x" << _iHeight <<
|
||||||
_iWidth, _iHeight,
|
" RenderTexture with BPP(" <<
|
||||||
_iNumColorBits[0], _iNumColorBits[1],
|
_iNumColorBits[0] << "," << _iNumColorBits[1] << "," <<
|
||||||
_iNumColorBits[2], _iNumColorBits[3]);
|
_iNumColorBits[2] << "," << _iNumColorBits[3] << ")");
|
||||||
if (_iNumDepthBits) SG_LOG(SG_GL, SG_ALERT, " depth=%d", _iNumDepthBits);
|
if (_iNumDepthBits) SG_LOG(SG_GL, SG_ALERT, " depth=" << _iNumDepthBits);
|
||||||
if (_iNumStencilBits) SG_LOG(SG_GL, SG_ALERT, " stencil=%d", _iNumStencilBits);
|
if (_iNumStencilBits) SG_LOG(SG_GL, SG_ALERT, " stencil=" << _iNumStencilBits);
|
||||||
if (_bDoubleBuffered) SG_LOG(SG_GL, SG_ALERT, " double buffered");
|
if (_bDoubleBuffered) SG_LOG(SG_GL, SG_ALERT, " double buffered");
|
||||||
SG_LOG(SG_GL, SG_ALERT, "");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined( __APPLE__ )
|
#elif defined( __APPLE__ )
|
||||||
@@ -1224,7 +1223,7 @@ void RenderTexture::_ParseModeString(const char *modeString,
|
|||||||
_iNumComponents++;
|
_iNumComponents++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (kv.first == "r")
|
else if (kv.first == "r")
|
||||||
SG_LOG(SG_GL, SG_ALERT,
|
SG_LOG(SG_GL, SG_ALERT,
|
||||||
"RenderTexture Warning: mistake in components definition "
|
"RenderTexture Warning: mistake in components definition "
|
||||||
"(r + " << _iNumComponents << ").");
|
"(r + " << _iNumComponents << ").");
|
||||||
@@ -1591,7 +1590,7 @@ void RenderTexture::_ParseModeString(const char *modeString,
|
|||||||
default:
|
default:
|
||||||
SG_LOG(SG_GL, SG_ALERT,
|
SG_LOG(SG_GL, SG_ALERT,
|
||||||
"RenderTexture Warning: Bad number of components "
|
"RenderTexture Warning: Bad number of components "
|
||||||
"(r=1,rg=2,rgb=3,rgba=4): %d.",
|
"(r=1,rg=2,rgb=3,rgba=4): " <<
|
||||||
_iNumComponents);
|
_iNumComponents);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1639,7 +1638,7 @@ void RenderTexture::_ParseModeString(const char *modeString,
|
|||||||
default:
|
default:
|
||||||
SG_LOG(SG_GL, SG_ALERT,
|
SG_LOG(SG_GL, SG_ALERT,
|
||||||
"RenderTexture Warning: Bad number of components "
|
"RenderTexture Warning: Bad number of components "
|
||||||
"(r=1,rg=2,rgb=3,rgba=4): %d.", _iNumComponents);
|
"(r=1,rg=2,rgb=3,rgba=4): " << _iNumComponents);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user