X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcdisplayinfo.C;h=62d58338fd648ba13844e17b19b7c5c3189b9608;hb=e04ca4a9e14ac5d4163e92ed4d614ac39abb7440;hp=fcee206668d6e7b1e65893d5a97e9e9a06fb6210;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcdisplayinfo.C b/cinelerra-5.1/guicast/bcdisplayinfo.C index fcee2066..62d58338 100644 --- a/cinelerra-5.1/guicast/bcdisplayinfo.C +++ b/cinelerra-5.1/guicast/bcdisplayinfo.C @@ -41,6 +41,7 @@ int BC_DisplayInfo::bottom_border = -1; int BC_DisplayInfo::right_border = -1; int BC_DisplayInfo::auto_reposition_x = -1; int BC_DisplayInfo::auto_reposition_y = -1; +int BC_DisplayInfo::gl_max_texture_size = -1; char BC_DisplayInfo::gl_shader_version[64] = { 0, }; BC_DisplayInfo::BC_DisplayInfo(const char *display_name, int show_error) @@ -240,6 +241,8 @@ int BC_DisplayInfo::gl_probe(Window win) if( shader_version ) strncpy(gl_shader_version, shader_version, sizeof(gl_shader_version)); } + gl_max_texture_size = 0; + glGetIntegerv(GL_MAX_TEXTURE_SIZE, &gl_max_texture_size); glXMakeContextCurrent(display, None, None, 0); if( glx_ctx ) glXDestroyContext(display, glx_ctx); if( glx_win ) glXDestroyWindow(display, glx_win); @@ -388,6 +391,12 @@ int BC_DisplayInfo::get_bottom_border() return bottom_border; } +int BC_DisplayInfo::get_gl_max_texture_size() +{ + init_borders(); + return gl_max_texture_size; +} + const char *BC_DisplayInfo::get_gl_shader_version() { init_borders();