dlls/d3d8/shader.c

Marcus Meissner marcus at jet.franken.de
Sun Apr 25 03:36:39 CDT 2004


Hi,

I was just fixing this code, but I wonder why floorf(s0->w) is overwritten
right next with tmp_f = powf(2.0f, s0->w);

What is the right version?

Ciao, Marcus

void vshader_expp(D3DSHADERVECTOR* d, D3DSHADERVECTOR* s0) {
  float tmp_f = floorf(s0->w);
  DWORD tmp_d = 0;
  tmp_f = powf(2.0f, s0->w);
  tmp_d = *((DWORD*) &tmp_f) & 0xFFFFFF00;




More information about the wine-devel mailing list