engine/EngineVideoTextureManager.c
/*	Return a size with hardware and user prefs in mind
*/
Return a size with hardware and user prefs in mind
Return a size with hardware and user prefs in mind
unsigned int TexMgr_SafeTextureSize (int s)
{
	s = TexMgr_Pad(s);
	if (gl_max_size.iValue > 0)
		s = Math_Min(TexMgr_Pad(gl_max_size.iValue), s);
	s = Math_Min(gl_hardware_maxsize, s);
	return s;
}
unsigned int TexMgr_SafeTextureSize ( int s ) { s = TexMgr_Pad ( s ) ; if ( gl_max_size . iValue > 0 ) s = Math_Min ( TexMgr_Pad ( gl_max_size . iValue ) , s ) ; s = Math_Min ( gl_hardware_maxsize , s ) ; return s ; }
Return a size with hardware and user prefs in mind
Return a size with hardware and user prefs in mind