mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix bug
This commit is contained in:
parent
f0e87fc1eb
commit
4ddf472bf8
@ -1294,7 +1294,7 @@ IDirect3DTexture8 *DXTextureContext::CreateTexture(DXScreenData &scrn) {
|
||||
}
|
||||
case 8:
|
||||
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);
|
||||
|
||||
// look for native lum fmt first
|
||||
@ -1454,7 +1454,7 @@ IDirect3DTexture8 *DXTextureContext::CreateTexture(DXScreenData &scrn) {
|
||||
#ifdef DO_CUSTOM_CONVERSIONS
|
||||
dxgsg_cat.debug() << "CreateTexture: "<< _tex->get_name() <<" converting " << ConvNameStrs[ConvNeeded] << " \n";
|
||||
#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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user