projects
/
dosdemo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dfc6eba
)
fixed uninitialized color in flat untextured z-buffer rasterizer variant
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 8 May 2022 15:05:25 +0000
(18:05 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 8 May 2022 15:05:25 +0000
(18:05 +0300)
src/3dgfx/polytmpl.h
patch
|
blob
|
history
diff --git
a/src/3dgfx/polytmpl.h
b/src/3dgfx/polytmpl.h
index
167d5e1
..
62692fa
100644
(file)
--- a/
src/3dgfx/polytmpl.h
+++ b/
src/3dgfx/polytmpl.h
@@
-101,7
+101,8
@@
void POLYFILL(struct pvertex *pv, int nverts)
#if defined(GOURAUD) || defined(TEXMAP) || defined(ZBUF)
int mid;
int32_t dx, tmp;
#if defined(GOURAUD) || defined(TEXMAP) || defined(ZBUF)
int mid;
int32_t dx, tmp;
-#else
+#endif
+#if !defined(GOURAUD) && !defined(TEXMAP)
/* flat version, just pack the color now */
color = G3D_PACK_RGB(pv[0].r, pv[0].g, pv[0].b);
#endif
/* flat version, just pack the color now */
color = G3D_PACK_RGB(pv[0].r, pv[0].g, pv[0].b);
#endif