]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Mon, 14 Nov 2011 14:14:52 +0000 (14:14 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Mon, 14 Nov 2011 14:14:52 +0000 (14:14 +0000)
core/mixer/gpu/ogl_device.cpp

index 4ebc5bb3b0a5dfe8a1ad0d439d3ecb5f528081b2..5b0d938c9bb9b9dcf27b02338f02f8249324ca2f 100644 (file)
@@ -41,6 +41,8 @@ ogl_device::ogl_device()
        , attached_texture_(0)\r
        , active_shader_(0)\r
 {\r
+       CASPAR_LOG(info) << L"Initializing OpenGL Device.";\r
+\r
        std::fill(binded_textures_.begin(), binded_textures_.end(), 0);\r
        std::fill(viewport_.begin(), viewport_.end(), 0);\r
        std::fill(scissor_.begin(), scissor_.end(), 0);\r
@@ -53,14 +55,18 @@ ogl_device::ogl_device()
                \r
                if (glewInit() != GLEW_OK)\r
                        BOOST_THROW_EXCEPTION(gl::ogl_exception() << msg_info("Failed to initialize GLEW."));\r
-                               \r
-               if(!GLEW_VERSION_3_2)\r
-                       CASPAR_LOG(warning) << "Missing OpenGL 3.2 support.";\r
+                                               \r
+               if(!GLEW_VERSION_3_0)\r
+                       CASPAR_LOG(warning) << "Missing OpenGL 3.0 support.";\r
        \r
+               CASPAR_LOG(info) << L"Successfully initialized GLEW.";\r
+\r
                GL(glGenFramebuffers(1, &fbo_));                \r
                GL(glBindFramebuffer(GL_FRAMEBUFFER_EXT, fbo_));\r
                GL(glReadBuffer(GL_COLOR_ATTACHMENT0_EXT));\r
         GL(glDisable(GL_MULTISAMPLE_ARB));\r
+\r
+               CASPAR_LOG(info) << L"Successfully initialized OpenGL Device.";\r
        });\r
 }\r
 \r