summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-03 21:31:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-07 01:02:02 +0000
commit3eed7751c9f2a7ae5cdba1d233751f82dd8d9b10 (patch)
tree68146762d3c0c0268a180558d6fdea0300e68b09 /test
parentMerge branch 'glad' (diff)
downloadilt-3eed7751c9f2a7ae5cdba1d233751f82dd8d9b10.tar.bz2
ilt-3eed7751c9f2a7ae5cdba1d233751f82dd8d9b10.tar.xz
ilt-3eed7751c9f2a7ae5cdba1d233751f82dd8d9b10.zip
Don't request a specific OpenGL version, just check we get something sufficient from gladLoadGL
Diffstat (limited to 'test')
-rw-r--r--test/test-glContextBhvr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-glContextBhvr.cpp b/test/test-glContextBhvr.cpp
index 1f1215c..769f61f 100644
--- a/test/test-glContextBhvr.cpp
+++ b/test/test-glContextBhvr.cpp
@@ -29,7 +29,7 @@ BOOST_AUTO_TEST_CASE(windowContextThingsBehaviour1)
const SDL_GLContextPtr context {window};
BOOST_REQUIRE(context);
BOOST_REQUIRE(!glCreateProgram);
- BOOST_REQUIRE_EQUAL(gladLoadGL(reinterpret_cast<GLADloadfunc>(SDL_GL_GetProcAddress)), 40006);
+ BOOST_REQUIRE_GT(gladLoadGL(reinterpret_cast<GLADloadfunc>(SDL_GL_GetProcAddress)), 0);
BOOST_REQUIRE(glCreateProgram);
CreateProgramTest();
} // Context destroyed