Pārlūkot izejas kodu

remove erroneous assertion

cxgeorge 24 gadi atpakaļ
vecāks
revīzija
3e8c2525bf
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      panda/src/dxgsg/dxTextureContext.cxx

+ 0 - 2
panda/src/dxgsg/dxTextureContext.cxx

@@ -1137,8 +1137,6 @@ CreateTexture(LPDIRECT3DDEVICE7 pd3dDevice, int cNumTexPixFmts, LPDDPIXELFORMAT
         }
     }
 
-    assert((cNumColorChannels!=3)==(cNumAlphaBits>0));  // 3 channel w/alpha makes no sense
-
     // handle each bitdepth separately
 
     switch(bpp) {  // bpp is REQUESTED bpp, not what exists in the pixbuf array