mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
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
This commit is contained in:
parent
1d0c672393
commit
10ff0d8184
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user