X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=init.cpp;fp=init.cpp;h=5b8da897271e8cf6b282cf153759bb8666e47a53;hp=f9e7f1580a91e44be43aaef306e0b10823a4f468;hb=6bf496a34a84fb14b1b3b6debfd42ba36568b879;hpb=223fbbe7c569feba046fc3533b9769943ed82612 diff --git a/init.cpp b/init.cpp index f9e7f15..5b8da89 100644 --- a/init.cpp +++ b/init.cpp @@ -428,12 +428,14 @@ bool init_movit(const string& data_directory, MovitDebugLevel debug_level) } // Find out what shader model we should compile for. + // We need at least 1.30, due to use of (among others) integers. if (epoxy_is_desktop_gl()) { - if (get_glsl_version() >= 1.30) { - movit_shader_model = MOVIT_GLSL_130; - } else { - movit_shader_model = MOVIT_GLSL_110; + if (get_glsl_version() < 1.30f) { + fprintf(stderr, "Movit system requirements: Needs at least GLSL version 1.30 (has version %.1f)\n", + get_glsl_version()); + return false; } + movit_shader_model = MOVIT_GLSL_130; } else { movit_shader_model = MOVIT_ESSL_300; }