m3g/m3gcore11/src/m3g_sprite.c
changeset 187 9f66f99ee56f
parent 36 01a6848ebfd7
child 164 25ffed67c7ef
equal deleted inserted replaced
103:2717213c588a 187:9f66f99ee56f
   278         m3gTransformVec4(projMatrix, &x);
   278         m3gTransformVec4(projMatrix, &x);
   279         m3gTransformVec4(projMatrix, &y);
   279         m3gTransformVec4(projMatrix, &y);
   280     }
   280     }
   281 #ifndef M3G_USE_NGL_API
   281 #ifndef M3G_USE_NGL_API
   282     /* Store w after projection */
   282     /* Store w after projection */
   283     eyeSpace->w = ot.w;
   283     if (eyeSpace != NULL) {
       
   284         eyeSpace->w = ot.w;
       
   285     }
   284 #endif
   286 #endif
   285     m3gScaleVec4(&ot, m3gRcp(ot.w));
   287     m3gScaleVec4(&ot, m3gRcp(ot.w));
   286     m3gScaleVec4(&x, m3gRcp(x.w));
   288     m3gScaleVec4(&x, m3gRcp(x.w));
   287     m3gScaleVec4(&y, m3gRcp(y.w));
   289     m3gScaleVec4(&y, m3gRcp(y.w));
   288 
   290