mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix bug
This commit is contained in:
parent
f0e87fc1eb
commit
4ddf472bf8
@ -1294,7 +1294,7 @@ IDirect3DTexture8 *DXTextureContext::CreateTexture(DXScreenData &scrn) {
|
|||||||
}
|
}
|
||||||
case 8:
|
case 8:
|
||||||
if(bNeedLuminance) {
|
if(bNeedLuminance) {
|
||||||
assert(cNumAlphaBits>0); // dont bother handling those other 8bit lum fmts like 4-4, since 16 8-8 is usually supported too
|
// dont bother handling those other 8bit lum fmts like 4-4, since 16 8-8 is usually supported too
|
||||||
assert(cNumColorChannels==1);
|
assert(cNumColorChannels==1);
|
||||||
|
|
||||||
// look for native lum fmt first
|
// look for native lum fmt first
|
||||||
@ -1454,7 +1454,7 @@ IDirect3DTexture8 *DXTextureContext::CreateTexture(DXScreenData &scrn) {
|
|||||||
#ifdef DO_CUSTOM_CONVERSIONS
|
#ifdef DO_CUSTOM_CONVERSIONS
|
||||||
dxgsg_cat.debug() << "CreateTexture: "<< _tex->get_name() <<" converting " << ConvNameStrs[ConvNeeded] << " \n";
|
dxgsg_cat.debug() << "CreateTexture: "<< _tex->get_name() <<" converting " << ConvNameStrs[ConvNeeded] << " \n";
|
||||||
#else
|
#else
|
||||||
dxgsg_cat.debug() << "CreateTexture: "<< _tex->get_name() <<" converting " << D3DFormatStr(_PixBufD3DFmt) << " => " << D3DFormatStr(TargetPixFmt) << endl;
|
dxgsg_cat.debug() << "CreateTexture: "<< _tex->get_name() <<" converting panda equivalent of " << D3DFormatStr(_PixBufD3DFmt) << " => " << D3DFormatStr(TargetPixFmt) << endl;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user