wined3d: Fix point handling.

This commit is contained in:
Nick Burns 2007-01-01 01:58:33 -08:00 committed by Alexandre Julliard
parent 7aab8810e1
commit d955715180
1 changed files with 12 additions and 2 deletions

View File

@ -919,7 +919,12 @@ static void state_psizemin(DWORD state, IWineD3DStateBlockImpl *stateblock) {
float f;
} 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];
GL_EXTCALL(glPointParameterfEXT)(GL_POINT_SIZE_MIN_EXT, tmpvalue.f);
checkGLcall("glPointParameterfEXT(...);");
@ -934,7 +939,12 @@ static void state_psizemax(DWORD state, IWineD3DStateBlockImpl *stateblock) {
float f;
} 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];
GL_EXTCALL(glPointParameterfEXT)(GL_POINT_SIZE_MAX_EXT, tmpvalue.f);
checkGLcall("glPointParameterfEXT(...);");