Commit d9557151 authored by Nick Burns's avatar Nick Burns Committed by Alexandre Julliard

wined3d: Fix point handling.

parent 7aab8810
...@@ -919,7 +919,12 @@ static void state_psizemin(DWORD state, IWineD3DStateBlockImpl *stateblock) { ...@@ -919,7 +919,12 @@ static void state_psizemin(DWORD state, IWineD3DStateBlockImpl *stateblock) {
float f; float f;
} tmpvalue; } tmpvalue;
if (GL_SUPPORT(EXT_POINT_PARAMETERS)) { if(GL_SUPPORT(ARB_POINT_PARAMETERS)) {
tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE_MIN];
GL_EXTCALL(glPointParameterfARB)(GL_POINT_SIZE_MIN_ARB, tmpvalue.f);
checkGLcall("glPointParameterfARB(...");
}
else if(GL_SUPPORT(EXT_POINT_PARAMETERS)) {
tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE_MIN]; tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE_MIN];
GL_EXTCALL(glPointParameterfEXT)(GL_POINT_SIZE_MIN_EXT, tmpvalue.f); GL_EXTCALL(glPointParameterfEXT)(GL_POINT_SIZE_MIN_EXT, tmpvalue.f);
checkGLcall("glPointParameterfEXT(...);"); checkGLcall("glPointParameterfEXT(...);");
...@@ -934,7 +939,12 @@ static void state_psizemax(DWORD state, IWineD3DStateBlockImpl *stateblock) { ...@@ -934,7 +939,12 @@ static void state_psizemax(DWORD state, IWineD3DStateBlockImpl *stateblock) {
float f; float f;
} tmpvalue; } tmpvalue;
if (GL_SUPPORT(EXT_POINT_PARAMETERS)) { if(GL_SUPPORT(ARB_POINT_PARAMETERS)) {
tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE_MAX];
GL_EXTCALL(glPointParameterfARB)(GL_POINT_SIZE_MAX_ARB, tmpvalue.f);
checkGLcall("glPointParameterfARB(...");
}
else if(GL_SUPPORT(EXT_POINT_PARAMETERS)) {
tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE_MAX]; tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE_MAX];
GL_EXTCALL(glPointParameterfEXT)(GL_POINT_SIZE_MAX_EXT, tmpvalue.f); GL_EXTCALL(glPointParameterfEXT)(GL_POINT_SIZE_MAX_EXT, tmpvalue.f);
checkGLcall("glPointParameterfEXT(...);"); checkGLcall("glPointParameterfEXT(...);");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment