mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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");
|
get_extension_func("glDebugMessageControlARB");
|
||||||
_supports_debug = true;
|
_supports_debug = true;
|
||||||
#endif
|
#endif
|
||||||
|
} else {
|
||||||
|
_supports_debug = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_supports_debug) {
|
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 width = tex->get_expected_mipmap_x_size(n);
|
||||||
int height = tex->get_expected_mipmap_y_size(n);
|
int height = tex->get_expected_mipmap_y_size(n);
|
||||||
|
#ifndef OPENGLES_1
|
||||||
int depth = tex->get_expected_mipmap_z_size(n);
|
int depth = tex->get_expected_mipmap_z_size(n);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DO_PSTATS
|
#ifdef DO_PSTATS
|
||||||
_data_transferred_pcollector.add_level(view_size);
|
_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 width = tex->get_expected_mipmap_x_size(n);
|
||||||
int height = tex->get_expected_mipmap_y_size(n);
|
int height = tex->get_expected_mipmap_y_size(n);
|
||||||
|
#ifndef OPENGLES_1
|
||||||
int depth = tex->get_expected_mipmap_z_size(n);
|
int depth = tex->get_expected_mipmap_z_size(n);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DO_PSTATS
|
#ifdef DO_PSTATS
|
||||||
_data_transferred_pcollector.add_level(view_size);
|
_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();
|
size_t num_textures = _shader->_tex_spec.size();
|
||||||
GLuint *textures;
|
GLuint *textures = nullptr;
|
||||||
GLuint *samplers;
|
GLuint *samplers = nullptr;
|
||||||
#ifdef OPENGLES
|
#ifdef OPENGLES
|
||||||
static const bool multi_bind = false;
|
static const bool multi_bind = false;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user