]> git.sesse.net Git - movit/blobdiff - init.cpp
Allow for more than ten bits in subpixel precision measuring; modern llvmpipe seems...
[movit] / init.cpp
index a70ae058bbf39ddd0eb0b0ae2ee31b3cafef0be9..b8b3cb4e884de457e57acc854b6ba0c593426df5 100644 (file)
--- a/init.cpp
+++ b/init.cpp
@@ -5,6 +5,7 @@
 #include "util.h"
 
 bool movit_initialized = false;
 #include "util.h"
 
 bool movit_initialized = false;
+MovitDebugLevel movit_debug_level = MOVIT_DEBUG_ON;
 float movit_texel_subpixel_precision;
 bool movit_srgb_textures_supported;
 
 float movit_texel_subpixel_precision;
 bool movit_srgb_textures_supported;
 
@@ -17,7 +18,7 @@ namespace {
 
 void measure_texel_subpixel_precision()
 {
 
 void measure_texel_subpixel_precision()
 {
-       static const unsigned width = 1024;
+       static const unsigned width = 4096;
 
        // Generate a destination texture to render to, and an FBO.
        GLuint dst_texnum, fbo;
 
        // Generate a destination texture to render to, and an FBO.
        GLuint dst_texnum, fbo;
@@ -154,13 +155,14 @@ void check_extensions()
 
 }  // namespace
 
 
 }  // namespace
 
-void init_movit(const std::string& data_directory)
+void init_movit(const std::string& data_directory, MovitDebugLevel debug_level)
 {
        if (movit_initialized) {
                return;
        }
 
        movit_data_directory = new std::string(data_directory);
 {
        if (movit_initialized) {
                return;
        }
 
        movit_data_directory = new std::string(data_directory);
+       movit_debug_level = debug_level;
 
        glewInit();
 
 
        glewInit();