mesa: add _mesa_program_state_value_size() helper
[mesa.git] / src / mesa / swrast / s_points.c
index 82128508de206af831a44314a79448121f05db9f..1c6c239042aaef8aac20d1be8a3c2f417b3afd3d 100644 (file)
@@ -38,7 +38,7 @@
    do {                                              \
       float tmp = (V)->attrib[VARYING_SLOT_POS][0]   \
                 + (V)->attrib[VARYING_SLOT_POS][1];  \
-      if (IS_INF_OR_NAN(tmp))                        \
+      if (util_is_inf_or_nan(tmp))                   \
         return;                                     \
    } while(0)
 
@@ -140,7 +140,7 @@ sprite_point(struct gl_context *ctx, const SWvertex *vert)
             /* a texcoord attribute */
             const GLuint u = attr - VARYING_SLOT_TEX0;
             assert(u < MAX_TEXTURE_COORD_UNITS);
-            if (ctx->Point.CoordReplaceBits & (1u << u)) {
+            if (ctx->Point.CoordReplace & (1u << u)) {
                tCoords[numTcoords++] = attr;
 
                if (ctx->Point.SpriteRMode == GL_ZERO)