mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 08:28:29 +00:00
Removed validate_feature_indirect_draw_first_instance_disabled (thanks @rabbit-ecl!)
It was incorrectly checking the direct draw functions instead of checking indirect draw buffers.
This commit is contained in:
@@ -726,9 +726,6 @@ SDL_GPUDevice *SDL_CreateGPUDeviceWithProperties(SDL_PropertiesID props)
|
|||||||
result->default_enable_depth_clip = true;
|
result->default_enable_depth_clip = true;
|
||||||
result->validate_feature_depth_clamp_disabled = true;
|
result->validate_feature_depth_clamp_disabled = true;
|
||||||
}
|
}
|
||||||
if (!SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_INDIRECT_DRAW_FIRST_INSTANCE_BOOLEAN, true)) {
|
|
||||||
result->validate_feature_indirect_draw_first_instance_disabled = true;
|
|
||||||
}
|
|
||||||
if (!SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, true)) {
|
if (!SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, true)) {
|
||||||
result->validate_feature_anisotropy_disabled = true;
|
result->validate_feature_anisotropy_disabled = true;
|
||||||
}
|
}
|
||||||
@@ -2191,11 +2188,6 @@ void SDL_DrawGPUIndexedPrimitives(
|
|||||||
CHECK_RENDERPASS
|
CHECK_RENDERPASS
|
||||||
CHECK_GRAPHICS_PIPELINE_BOUND
|
CHECK_GRAPHICS_PIPELINE_BOUND
|
||||||
SDL_GPU_CheckGraphicsBindings(render_pass);
|
SDL_GPU_CheckGraphicsBindings(render_pass);
|
||||||
if (RENDERPASS_DEVICE->validate_feature_indirect_draw_first_instance_disabled &&
|
|
||||||
first_instance != 0) {
|
|
||||||
SDL_assert_release(!"first_instance must be 0 (FEATURE_INDIRECT_DRAW_FIRST_INSTANCE disabled)");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERPASS_DEVICE->DrawIndexedPrimitives(
|
RENDERPASS_DEVICE->DrawIndexedPrimitives(
|
||||||
@@ -2223,11 +2215,6 @@ void SDL_DrawGPUPrimitives(
|
|||||||
CHECK_RENDERPASS
|
CHECK_RENDERPASS
|
||||||
CHECK_GRAPHICS_PIPELINE_BOUND
|
CHECK_GRAPHICS_PIPELINE_BOUND
|
||||||
SDL_GPU_CheckGraphicsBindings(render_pass);
|
SDL_GPU_CheckGraphicsBindings(render_pass);
|
||||||
if (RENDERPASS_DEVICE->validate_feature_indirect_draw_first_instance_disabled &&
|
|
||||||
first_instance != 0) {
|
|
||||||
SDL_assert_release(!"first_instance must be 0 (FEATURE_INDIRECT_DRAW_FIRST_INSTANCE disabled)");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERPASS_DEVICE->DrawPrimitives(
|
RENDERPASS_DEVICE->DrawPrimitives(
|
||||||
|
@@ -1098,7 +1098,6 @@ struct SDL_GPUDevice
|
|||||||
bool debug_mode;
|
bool debug_mode;
|
||||||
bool default_enable_depth_clip;
|
bool default_enable_depth_clip;
|
||||||
bool validate_feature_depth_clamp_disabled;
|
bool validate_feature_depth_clamp_disabled;
|
||||||
bool validate_feature_indirect_draw_first_instance_disabled;
|
|
||||||
bool validate_feature_anisotropy_disabled;
|
bool validate_feature_anisotropy_disabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user