Skip to content

Commit dfbe728

Browse files
committed
glgsg: fix shader point sprites when not using core-only profile
1 parent 87c453f commit dfbe728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

panda/src/glstuff/glGraphicsStateGuardian_src.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11759,8 +11759,6 @@ do_issue_tex_gen() {
1175911759

1176011760
_tex_gen_modifies_mat = false;
1176111761

11762-
bool got_point_sprites = false;
11763-
1176411762
for (int i = 0; i < _num_active_texture_stages; i++) {
1176511763
set_active_texture_stage(i);
1176611764
if (_supports_point_sprite) {
@@ -11953,7 +11951,6 @@ do_issue_tex_gen() {
1195311951
#else
1195411952
glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
1195511953
#endif
11956-
got_point_sprites = true;
1195711954
}
1195811955
break;
1195911956

@@ -11991,6 +11988,9 @@ do_issue_tex_gen() {
1199111988
#endif // OPENGLES
1199211989
}
1199311990

11991+
bool got_point_sprites = _supports_point_sprite &&
11992+
(_target_tex_gen->get_geom_rendering(Geom::GR_point) & GeomEnums::GR_point_sprite) != 0;
11993+
1199411994
if (got_point_sprites != _tex_gen_point_sprite) {
1199511995
_tex_gen_point_sprite = got_point_sprites;
1199611996
#ifdef OPENGLES

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy