mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Removed some dead code.
This commit is contained in:
parent
987bae400e
commit
8f38497a08
@ -6998,20 +6998,6 @@ upload_texture_image(CLP(TextureContext) *gtc,
|
||||
// We need to reload a new image.
|
||||
|
||||
if (num_ram_mipmap_levels == 0) {
|
||||
//GLCAT.info()
|
||||
//<< "Synthesizing blank image for " << tex->get_name()
|
||||
//<< "\n";
|
||||
//int *blank_image = new int[width * height];
|
||||
//int color = 0xFF808080;
|
||||
//switch (z) {
|
||||
//case 0: color = 0xFF0000FF; break;
|
||||
//case 1: color = 0xFF00FF00; break;
|
||||
//case 2: color = 0xFFFF0000; break;
|
||||
//case 3: color = 0xFF00FFFF; break;
|
||||
//case 4: color = 0xFFFFFF00; break;
|
||||
//case 5: color = 0xFFFF00FF; break;
|
||||
//}
|
||||
//for (int i=0; i<width * height; i++) blank_image[i]=color;
|
||||
if (external_format == GL_DEPTH_STENCIL_EXT) {
|
||||
GLP(TexImage2D)(page_target, 0, internal_format,
|
||||
width, height, 0,
|
||||
@ -7020,11 +7006,10 @@ upload_texture_image(CLP(TextureContext) *gtc,
|
||||
else {
|
||||
GLP(TexImage2D)(page_target, 0, internal_format,
|
||||
width, height, 0,
|
||||
external_format, GL_UNSIGNED_BYTE, NULL);//blank_image);
|
||||
external_format, GL_UNSIGNED_BYTE, NULL);
|
||||
}
|
||||
//delete blank_image;
|
||||
}
|
||||
|
||||
|
||||
for (int n = mipmap_bias; n < num_ram_mipmap_levels; ++n) {
|
||||
CPTA_uchar ptimage = tex->get_ram_mipmap_image(n);
|
||||
if (ptimage == (const unsigned char *)NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user