File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11759,8 +11759,6 @@ do_issue_tex_gen() {
11759
11759
11760
11760
_tex_gen_modifies_mat = false ;
11761
11761
11762
- bool got_point_sprites = false ;
11763
-
11764
11762
for (int i = 0 ; i < _num_active_texture_stages; i++) {
11765
11763
set_active_texture_stage (i);
11766
11764
if (_supports_point_sprite) {
@@ -11953,7 +11951,6 @@ do_issue_tex_gen() {
11953
11951
#else
11954
11952
glTexEnvi (GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
11955
11953
#endif
11956
- got_point_sprites = true ;
11957
11954
}
11958
11955
break ;
11959
11956
@@ -11991,6 +11988,9 @@ do_issue_tex_gen() {
11991
11988
#endif // OPENGLES
11992
11989
}
11993
11990
11991
+ bool got_point_sprites = _supports_point_sprite &&
11992
+ (_target_tex_gen->get_geom_rendering (Geom::GR_point) & GeomEnums::GR_point_sprite) != 0 ;
11993
+
11994
11994
if (got_point_sprites != _tex_gen_point_sprite) {
11995
11995
_tex_gen_point_sprite = got_point_sprites;
11996
11996
#ifdef OPENGLES
You can’t perform that action at this time.
0 commit comments