wined3d: rhw vertex fixup.

Change the rhw=0 range to ]1e-8,1e-8[ and move the value to a constant
in wined3d_types.h
oldstable
Stefan Dösinger 2006-05-09 18:16:13 +02:00 committed by Alexandre Julliard
parent 1d0c672393
commit 10ff0d8184
2 changed files with 3 additions and 1 deletions

View File

@ -1529,7 +1529,7 @@ static void drawStridedSlow(IWineD3DDevice *iface, WineDirect3DVertexStridedData
/* Position -------------------------------- */
if (sd->u.s.position.lpData != NULL) {
if (1.0f == rhw || ((rhw < 0.0001f) && (rhw > -0.0001f))) {
if (1.0f == rhw || ((rhw < eps) && (rhw > -eps))) {
VTRACE(("Vertex: glVertex:x,y,z=%f,%f,%f\n", x,y,z));
glVertex3f(x, y, z);
} else {

View File

@ -378,6 +378,8 @@ void drawPrimitive(IWineD3DDevice *iface,
int minIndex,
WineDirect3DVertexStridedData *DrawPrimStrideData);
#define eps 1e-8
/* Routine to fill gl caps for swapchains and IWineD3D */
BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info,
Display* display);