mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
modify line warning
This commit is contained in:
parent
d4a45b2c74
commit
e7c94bfa9a
@ -990,8 +990,11 @@ draw_line(const GeomLine* geom) {
|
||||
#endif
|
||||
|
||||
#ifdef _DEBUG
|
||||
if(geom->get_width()!=1.0f) {
|
||||
dxgsg_cat.error() << "DX does not support drawing lines with a non-1.0 pixel width!!\n";
|
||||
static BOOL bPrintedMsg=FALSE;
|
||||
|
||||
if(!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||
bPrintedMsg=TRUE;
|
||||
dxgsg_cat.warning() << "DX does not support drawing lines with a non-1.0 pixel width, setting width to 1.0!\n";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user