Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-16 21:49:18 +0000
committerStijn Buys <ingar@osirion.org>2010-11-16 21:49:18 +0000
commitb58da165c4ae841859ee7c600ec27f7207181a0e (patch)
tree2bdc6770dacfcfb6fb8443b41f79c5008bbd8fb2 /src/render/render.cc
parent2daac503a3a2f149f883db7c30199ebbb1f00c7f (diff)
renamed screenshotformat and screenshotquality cvars,
cleaned up mipmap and vbo console messages
Diffstat (limited to 'src/render/render.cc')
-rw-r--r--src/render/render.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/render/render.cc b/src/render/render.cc
index baf9465..1b0d90e 100644
--- a/src/render/render.cc
+++ b/src/render/render.cc
@@ -114,19 +114,19 @@ void init(int width, int height)
r_physics = core::Cvar::get("r_physics", "0", core::Cvar::Archive);
r_physics->set_info("[bool] render physics (local game only)");
- Screenshot::screenshotformat = core::Cvar::get("screenshotformat", "jpg", core::Cvar::Archive);
+ Screenshot::screenshotformat = core::Cvar::get("screenshot_format", "jpg", core::Cvar::Archive);
Screenshot::screenshotformat->set_info("[string] screenshot format: jpg png tga");
- Screenshot::screenshotquality = core::Cvar::get("screenshotquality", "85", core::Cvar::Archive);
- Screenshot::screenshotquality->set_info("[int] screenshot jpg quality");
+ Screenshot::screenshotquality = core::Cvar::get("screenshot_quality", "90", core::Cvar::Archive);
+ Screenshot::screenshotquality->set_info("[int] screenshot jpeg quality");
// hardware generate mipmaps
- r_mipmap = core::Cvar::get("r_mipmap", "1", core::Cvar::Archive);
- r_mipmap->set_info("[bool] use hardware generated mipmaps (recommended on)");
- if (!State::has_generate_mipmaps()) {
- con_print << " no hardware generated mipmap support" << std::endl;
- (*r_mipmap) = 0.0f;
+ if (State::has_generate_mipmaps()) {
+ r_mipmap = core::Cvar::get("r_mipmap", "1", core::Cvar::Archive);
+ } else {
+ r_mipmap = core::Cvar::get("r_mipmap", "0", core::Cvar::Archive);
}
+ r_mipmap->set_info("[bool] use hardware generated mipmaps (recommended on)");
Camera::init();