|
From: Tapio V. <aa...@us...> - 2010-09-14 17:15:28
|
Module: performous
Branch: master
Commit: 58022eae5dd288936c3a46de776de5fc55507508
Author: Tapio Vierros <tap...@gm...>
Date: Tue Sep 14 20:14:47 2010 +0300
Drop GL attribute errors to warning class.
---
game/video_driver.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/video_driver.cc b/game/video_driver.cc
index 4e33ac0..4ad9d69 100644
--- a/game/video_driver.cc
+++ b/game/video_driver.cc
@@ -17,13 +17,13 @@ namespace {
/// Tests for success when destoryed.
struct GLattrSetter {
GLattrSetter(SDL_GLattr attr, int value): m_attr(attr), m_value(value) {
- if (SDL_GL_SetAttribute(attr, value)) std::clog << "video/error: Error setting GLattr " << m_attr << std::endl;
+ if (SDL_GL_SetAttribute(attr, value)) std::clog << "video/warning: Error setting GLattr " << m_attr << std::endl;
}
~GLattrSetter() {
int value;
SDL_GL_GetAttribute(m_attr, &value);
if (value != m_value)
- std::clog << "video/error: Error setting GLattr " << m_attr
+ std::clog << "video/warning: Error setting GLattr " << m_attr
<< ": requested " << m_value << ", got " << value << std::endl;
}
SDL_GLattr m_attr;
|