Re: [RFC] wined3d: Avoid triggering OPENGL errors when setting point size
23 Dec
2008
23 Dec
'08
12:49 a.m.
2008/12/23 Vincent Pelletier <plr.vincent(a)gmail.com>:
If WINED3DRS_POINTSCALEENABLE is false and WINED3DRS_POINTSIZE render state is set to an invalid size, glPointSize will fail. This happens in "Black & White 2", causing log/stderr to be flooded with opengl errors.
I'm not sure if this should be fixed here, or when setting state value. Also, maybe it should be avoided to double-check against opengl bounds when WINED3DRS_POINTSCALEENABLE is true.
I think it makes more sense to clamp the value to be within the limits, rather than using whatever was used last.
6201
Age (days ago)
6201
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet