From ef4b1d572194b9d56eb3a40264b7cad867ae6e30 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 18 Jan 2021 00:19:39 +0100 Subject: [PATCH] glgsg: Fix compile error with OpenGL ES 1 --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index d2c62a627d..d80d2623bb 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -4314,7 +4314,9 @@ begin_draw_primitives(const GeomPipelineReader *geom_reader, } nassertr(_data_reader != nullptr, false); +#ifndef OPENGLES_1 _instance_count = _supports_geometry_instancing ? num_instances : 1; +#endif _geom_display_list = 0;