From 129b19f69fbbdcd896150aa8faa7f20254169c0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Apr 2012 21:56:58 +0300 Subject: Add to log draw backend name. Add ability to get free video memory (fast openg with NVIDIA). Add test with id 100 for long perfomance testing. --- src/opengl1graphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/opengl1graphics.cpp') diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp index b04deedac..8563ab0d2 100644 --- a/src/opengl1graphics.cpp +++ b/src/opengl1graphics.cpp @@ -65,6 +65,7 @@ void OpenGL1Graphics::setSync(bool sync) bool OpenGL1Graphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel, bool resize, bool noFrame) { + logger->log1("graphics backend: safe OpenGL"); logger->log("Setting video mode %dx%d %s", w, h, fs ? "fullscreen" : "windowed"); @@ -118,10 +119,15 @@ bool OpenGL1Graphics::setVideoMode(int w, int h, int bpp, bool fs, char const *glExtensions = reinterpret_cast( glGetString(GL_EXTENSIONS)); + + logger->log1("opengl extensions: "); + logger->log1(glExtensions); + GLint texSize; bool rectTex = strstr(glExtensions, "GL_ARB_texture_rectangle"); if (rectTex) { + logger->log1("using GL_ARB_texture_rectangle"); Image::mTextureType = GL_TEXTURE_RECTANGLE_ARB; glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, &texSize); } -- cgit v1.2.3-70-g09d2