mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Fix incorrect assumption that Mesa GL 3.0 driver doesn't implement non-core functionality
This commit is contained in:
parent
f22cc71995
commit
1834d9e879
@ -522,17 +522,15 @@ reset() {
|
|||||||
query_glsl_version();
|
query_glsl_version();
|
||||||
|
|
||||||
#ifndef OPENGLES
|
#ifndef OPENGLES
|
||||||
bool core_profile;
|
bool core_profile = is_at_least_gl_version(3, 2) &&
|
||||||
if (_gl_version_major < 3 || has_extension("GL_ARB_compatibility")) {
|
!has_extension("GL_ARB_compatibility");
|
||||||
core_profile = false;
|
|
||||||
} else {
|
|
||||||
core_profile = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (core_profile) {
|
if (GLCAT.is_debug()) {
|
||||||
GLCAT.debug() << "Using core profile\n";
|
if (core_profile) {
|
||||||
} else {
|
GLCAT.debug() << "Using core profile\n";
|
||||||
GLCAT.debug() << "Using compatibility profile\n";
|
} else {
|
||||||
|
GLCAT.debug() << "Using compatibility profile\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#elif defined(OPENGLES_1)
|
#elif defined(OPENGLES_1)
|
||||||
static const bool core_profile = false;
|
static const bool core_profile = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user