ref: caef313400a73f0daf3d4fc1870ccb7e1cb5b363
parent: 712ee8d9e10b050b55d8903799c8922cf13d7cf8
author: MHS <gek@katherine>
date: Tue Mar 23 09:23:14 EDT 2021
Automatic commit.
--- a/include/zfeatures.h
+++ b/include/zfeatures.h
@@ -26,7 +26,7 @@
//Lighting is expensive on texture-mapped polygons.
#define TGL_FEATURE_LIT_TEXTURES 1
//Enable the patternized "discard"-ing of pixels.
-#define TGL_FEATURE_POLYGON_STIPPLE 0
+#define TGL_FEATURE_POLYGON_STIPPLE 1
//Enable the use of GL_SELECT and GL_FEEDBACK
#define TGL_FEATURE_ALT_RENDERMODES 0
//Enable the rendering of large polygons (in terms of vertex count)
--- a/src/ztriangle.c
+++ b/src/ztriangle.c
@@ -21,7 +21,7 @@
#if TGL_FEATURE_POLYGON_STIPPLE == 1
#define TGL_STIPPLEVARS GLubyte* zbstipplepattern = zb->stipplepattern; GLubyte zbdostipple = zb->dostipple;
-#define THE_X (((GLushort)(pp - pp1)))
+#define THE_X ((GLint)(pp - pp1))
#define XSTIP(_a) ((THE_X + _a) & TGL_POLYGON_STIPPLE_MASK_X)
#define YSTIP (the_y & TGL_POLYGON_STIPPLE_MASK_Y)
// NOTES Divide by 8 to get the byte Get the actual bit