- Timestamp:
- Aug 6, 2018 10:51:44 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/shaderlib/shaderapi.c
r69500 r73518 333 333 } 334 334 335 /* Tweak the float constants limit to use a greater number of constants. 336 * Keep some space for the internal usage. 337 * The shader creation code artificially sets the limit according to D3D shader version. 338 * But the guest may use more constants and we are not required to strictly follow D3D specs. 339 */ 340 object->baseShader.limits.constant_float = RT_MAX(g_adapter.gl_info.limits.glsl_vs_float_constants / 2, 341 object->baseShader.limits.constant_float); 342 335 343 #ifdef VBOX_WINE_WITH_SHADER_CACHE 336 344 object = vertexshader_check_cached(This, object); … … 366 374 return VERR_INTERNAL_ERROR; 367 375 } 376 377 /* Tweak the float constants limit to use a greater number of constants. 378 * Keep some space for the internal usage. 379 * The shader creation code artificially sets the limit according to D3D shader version. 380 * But the guest may use more constants and we are not required to strictly follow D3D specs. 381 */ 382 object->baseShader.limits.constant_float = RT_MAX(g_adapter.gl_info.limits.glsl_ps_float_constants / 2, 383 object->baseShader.limits.constant_float); 368 384 369 385 #ifdef VBOX_WINE_WITH_SHADER_CACHE
Note:
See TracChangeset
for help on using the changeset viewer.