1
0
forked from 0ad/0ad

Add texture limits to hwdetect

This was SVN commit r8881.
This commit is contained in:
Ykkrosh 2011-01-31 18:59:37 +00:00
parent 81ac9285b6
commit 1e02fe70a7

View File

@ -77,6 +77,8 @@ void RunHardwareDetection()
const char* exts = ogl_ExtensionString();
if (!exts) exts = "";
scriptInterface.SetProperty(settings.get(), "gl_extensions", std::string(exts), false);
scriptInterface.SetProperty(settings.get(), "gl_max_tex_size", (int)ogl_max_tex_size, false);
scriptInterface.SetProperty(settings.get(), "gl_max_tex_units", (int)ogl_max_tex_units, false);
scriptInterface.SetProperty(settings.get(), "video_xres", g_VideoMode.GetXRes(), false);
scriptInterface.SetProperty(settings.get(), "video_yres", g_VideoMode.GetYRes(), false);