wined3d: Fix point handling.
This commit is contained in:
parent
7aab8810e1
commit
d955715180
|
@ -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(...);");
|
||||
|
|
Loading…
Reference in New Issue