mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
glgsg: Fix missing GR_adjacency geom rendering flag
I don't think this flag being missing currently affects any functionality, but it is meant to be set when geometry shaders (with adjacency) are supported.
This commit is contained in:
parent
54606c8894
commit
be2f6a7c61
@ -827,12 +827,6 @@ reset() {
|
|||||||
Geom::GR_line_strip |
|
Geom::GR_line_strip |
|
||||||
Geom::GR_flat_last_vertex;
|
Geom::GR_flat_last_vertex;
|
||||||
|
|
||||||
#ifndef OPENGLES
|
|
||||||
if (_supports_geometry_shaders) {
|
|
||||||
_supported_geom_rendering |= Geom::GR_adjacency;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_supports_point_parameters = false;
|
_supports_point_parameters = false;
|
||||||
|
|
||||||
#ifdef OPENGLES_1
|
#ifdef OPENGLES_1
|
||||||
@ -1769,6 +1763,10 @@ reset() {
|
|||||||
_supports_geometry_shaders = false;
|
_supports_geometry_shaders = false;
|
||||||
_glFramebufferTexture = nullptr;
|
_glFramebufferTexture = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_supports_geometry_shaders) {
|
||||||
|
_supported_geom_rendering |= Geom::GR_adjacency;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
_shader_caps._supports_glsl = _supports_glsl;
|
_shader_caps._supports_glsl = _supports_glsl;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user