Commit 1d757fd6 authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

wined3d: Prevent erroneous FIXMEs on newer cards.

Cards that have 12 or more combined samplers can trigger a fixme if they have the same amount of vertex samplers, even though it's plenty enough.
parent 13e14f3b
......@@ -901,7 +901,7 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
* So this is just a check to check that our assumption holds true. If not, write a warning
* and reduce the number of vertex samplers or probably disable vertex texture fetch.
*/
if(gl_info->max_vertex_samplers &&
if(gl_info->max_vertex_samplers && gl_info->max_combined_samplers < 12 &&
MAX_TEXTURES + gl_info->max_vertex_samplers > gl_info->max_combined_samplers) {
FIXME("OpenGL implementation supports %u vertex samplers and %u total samplers\n",
gl_info->max_vertex_samplers, gl_info->max_combined_samplers);
......
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