mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
glgsg: fix some GCC warning messages
This commit is contained in:
parent
ff3d005230
commit
16daf08e42
@ -613,6 +613,8 @@ reset() {
|
||||
get_extension_func("glDebugMessageControlARB");
|
||||
_supports_debug = true;
|
||||
#endif
|
||||
} else {
|
||||
_supports_debug = false;
|
||||
}
|
||||
|
||||
if (_supports_debug) {
|
||||
@ -12778,7 +12780,9 @@ upload_texture_image(CLP(TextureContext) *gtc, bool needs_reload,
|
||||
|
||||
int width = tex->get_expected_mipmap_x_size(n);
|
||||
int height = tex->get_expected_mipmap_y_size(n);
|
||||
#ifndef OPENGLES_1
|
||||
int depth = tex->get_expected_mipmap_z_size(n);
|
||||
#endif
|
||||
|
||||
#ifdef DO_PSTATS
|
||||
_data_transferred_pcollector.add_level(view_size);
|
||||
@ -12958,7 +12962,9 @@ upload_texture_image(CLP(TextureContext) *gtc, bool needs_reload,
|
||||
|
||||
int width = tex->get_expected_mipmap_x_size(n);
|
||||
int height = tex->get_expected_mipmap_y_size(n);
|
||||
#ifndef OPENGLES_1
|
||||
int depth = tex->get_expected_mipmap_z_size(n);
|
||||
#endif
|
||||
|
||||
#ifdef DO_PSTATS
|
||||
_data_transferred_pcollector.add_level(view_size);
|
||||
|
@ -2612,8 +2612,8 @@ update_shader_texture_bindings(ShaderContext *prev) {
|
||||
}
|
||||
|
||||
size_t num_textures = _shader->_tex_spec.size();
|
||||
GLuint *textures;
|
||||
GLuint *samplers;
|
||||
GLuint *textures = nullptr;
|
||||
GLuint *samplers = nullptr;
|
||||
#ifdef OPENGLES
|
||||
static const bool multi_bind = false;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user