diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-28 11:45:22 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-28 11:45:22 +0100 |
commit | fdea7529ba09a615d92da5823429b49c7e565c9d (patch) | |
tree | 67b12689c60dc2e75a5587988dd11bf36c12da9a /test/test-glContextBhvr.cpp | |
parent | Mark main rule as always, so we can always launch it (diff) | |
parent | Swap GLEW for more modern glad (diff) | |
download | ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.bz2 ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.xz ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.zip |
Merge branch 'glad'
Diffstat (limited to 'test/test-glContextBhvr.cpp')
-rw-r--r-- | test/test-glContextBhvr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-glContextBhvr.cpp b/test/test-glContextBhvr.cpp index 9716f54..1f1215c 100644 --- a/test/test-glContextBhvr.cpp +++ b/test/test-glContextBhvr.cpp @@ -24,12 +24,12 @@ BOOST_AUTO_TEST_CASE(windowContextThingsBehaviour1) const SDL_WindowPtr window {TEST_WINDOW_PARAMS}; BOOST_REQUIRE(window); BOOST_REQUIRE(!glCreateProgram); - BOOST_REQUIRE_NE(glewInit(), GLEW_OK); // No context yet + BOOST_REQUIRE_EQUAL(gladLoadGL(reinterpret_cast<GLADloadfunc>(SDL_GL_GetProcAddress)), 0); // No context yet { const SDL_GLContextPtr context {window}; BOOST_REQUIRE(context); BOOST_REQUIRE(!glCreateProgram); - BOOST_REQUIRE_EQUAL(glewInit(), GLEW_OK); + BOOST_REQUIRE_EQUAL(gladLoadGL(reinterpret_cast<GLADloadfunc>(SDL_GL_GetProcAddress)), 40006); BOOST_REQUIRE(glCreateProgram); CreateProgramTest(); } // Context destroyed |