Merge pull request #405 from raven02/g3d-log

Add disable G3D log to option menu , make default false
This commit is contained in:
Henrik Rydgård committed 2013-01-13 08:34:28 -08:00
commit 21b93d33cd
3 files changed
+4 -1

No files matched your search

+2
View File
@@ -66,6 +66,7 @@ void CConfig::Load(const char *iniFileName)
graphics->Get("LinearFiltering", &bLinearFiltering, false);
graphics->Get("SSAA", &SSAntiAlaising, 0);
graphics->Get("VBO", &bUseVBO, true);
graphics->Get("DisableG3DLog", &bDisableG3DLog, false);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Get("Enable", &bEnableSound, true);
@@ -107,6 +108,7 @@ void CConfig::Save()
graphics->Set("LinearFiltering", bLinearFiltering);
graphics->Set("SSAA", SSAntiAlaising);
graphics->Set("VBO", bUseVBO);
graphics->Set("DisableG3DLog", bDisableG3DLog);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Set("Enable", bEnableSound);
+1 -1
View File
@@ -338,7 +338,7 @@ void GenerateVertexShader(int prim, char *buffer) {
if (hasColor) {
WRITE(p, " v_color0 = a_color0;\n");
} else {
WRITE(p, " v_color0 += vec4(u_matambientalpha.rgb, 0.0);\n");
WRITE(p, " v_color0 = u_matambientalpha;\n");
}
if (lmode)
WRITE(p, " v_color1 = vec3(0.0, 0.0, 0.0);\n");
+1
View File
@@ -480,6 +480,7 @@ namespace MainWindow
SetZoom(screenfactor);
_ViewFullScreen(hWnd);
}
UpdateMenus();
break;
case ID_OPTIONS_WIREFRAME: