mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	Temporarily disabled texture binding validation
There are some advanced use cases that trip over this, so temporarily disabling the validation pending further review. Reference: https://github.com/libsdl-org/SDL/issues/13871
This commit is contained in:
		| @@ -61,6 +61,10 @@ | ||||
|         return;                                              \ | ||||
|     } | ||||
|  | ||||
| #if 0 | ||||
| // The below validation is too aggressive, since there are advanced situations  | ||||
| // where this is legal. This is being temporarily disabled for further review. | ||||
| // See: https://github.com/libsdl-org/SDL/issues/13871 | ||||
| #define CHECK_SAMPLER_TEXTURES                                                                                                          \ | ||||
|     RenderPass *rp = (RenderPass *)render_pass;                                                                                         \ | ||||
|     for (Uint32 color_target_index = 0; color_target_index < rp->num_color_targets; color_target_index += 1) {                          \ | ||||
| @@ -92,6 +96,10 @@ | ||||
|             SDL_assert_release(!"Texture cannot be simultaneously bound as a depth stencil target and a storage texture!"); \ | ||||
|         }                                                                                                                   \ | ||||
|     } | ||||
| #else | ||||
| #define CHECK_SAMPLER_TEXTURES | ||||
| #define CHECK_STORAGE_TEXTURES | ||||
| #endif | ||||
|  | ||||
| #define CHECK_GRAPHICS_PIPELINE_BOUND                                                   \ | ||||
|     if (!((RenderPass *)render_pass)->graphics_pipeline) { \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sam Lantinga
					Sam Lantinga