mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
pgraphnodes: Fixed the type of texture bytes in sceneGraphAnalyzer
- Corrected the type of texture bytes variable as it is possible to wrap it around Signed-off-by: deflected <deflected@users.noreply.github.com>
This commit is contained in:
parent
b8af5bf64f
commit
30cf1dbbb1
@ -224,7 +224,7 @@ get_num_vertices_in_patches() const {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
int SceneGraphAnalyzer::
|
||||
size_t SceneGraphAnalyzer::
|
||||
get_texture_bytes() const {
|
||||
return _texture_bytes;
|
||||
}
|
||||
|
@ -485,7 +485,7 @@ collect_statistics(Texture *texture) {
|
||||
_textures.insert(Textures::value_type(texture, 1));
|
||||
|
||||
// Attempt to guess how many bytes of texture memory this one requires.
|
||||
int bytes =
|
||||
size_t bytes =
|
||||
texture->get_x_size() * texture->get_y_size() *
|
||||
texture->get_num_components() * texture->get_component_width();
|
||||
|
||||
|
@ -81,7 +81,7 @@ PUBLISHED:
|
||||
INLINE int get_num_triangles_in_fans() const;
|
||||
INLINE int get_num_vertices_in_patches() const;
|
||||
|
||||
INLINE int get_texture_bytes() const;
|
||||
INLINE size_t get_texture_bytes() const;
|
||||
|
||||
INLINE int get_num_long_normals() const;
|
||||
INLINE int get_num_short_normals() const;
|
||||
@ -150,7 +150,7 @@ private:
|
||||
int _num_triangles_in_fans;
|
||||
int _num_vertices_in_patches;
|
||||
|
||||
int _texture_bytes;
|
||||
size_t _texture_bytes;
|
||||
|
||||
int _num_long_normals;
|
||||
int _num_short_normals;
|
||||
|
Loading…
x
Reference in New Issue
Block a user