Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
5c0d7c3a
Commit
5c0d7c3a
authored
Oct 13, 2021
by
TheNumbat
Browse files
fix gl version check
parent
f3ae2b91
Changes
1
Show whitespace changes
Inline
Side-by-side
src/platform/gl.cpp
View file @
5c0d7c3a
...
@@ -36,10 +36,11 @@ static bool is_gl45 = false;
...
@@ -36,10 +36,11 @@ static bool is_gl45 = false;
static
bool
is_gl41
=
false
;
static
bool
is_gl41
=
false
;
void
setup
()
{
void
setup
()
{
std
::
string
ver
=
version
();
GLint
major
,
minor
;
is_gl45
=
ver
.
find
(
"4.5"
)
!=
std
::
string
::
npos
;
glGetIntegerv
(
GL_MAJOR_VERSION
,
&
major
);
is_gl41
=
ver
.
find
(
"4.1"
)
!=
std
::
string
::
npos
;
glGetIntegerv
(
GL_MINOR_VERSION
,
&
minor
);
is_gl45
=
major
==
4
&&
minor
==
5
;
is_gl41
=
major
==
4
&&
minor
==
1
;
setup_debug_proc
();
setup_debug_proc
();
Effects
::
init
();
Effects
::
init
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment