We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2684

Summary: SDL_RenderCopy behaves differently when building for release
Product: SDL Reporter: Wolfos <robin.vanee>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Windows 8   

Description Wolfos 2014-08-14 10:20:22 UTC
In debug mode, when using SDL_Rendercopy and setting srcrect to a value that is outside the texture (e.g. -128 x when w is 128) it doesn't render anything. This is the behavior I had come to expect.

When building in release mode, though, it rendered the texture as if X was set to 0 instead (so in my case, that was the first tile on the sheet).

I really don't care what behavior it has, but it needs to be consistent.
Comment 1 Sam Lantinga 2014-08-17 06:27:29 UTC
Is the SDL library the one built debug vs release, or is it your code? If it's your code changing and not SDL, I would be surprised if SDL behavior would change.

Can you clarify?
Comment 2 Sam Lantinga 2017-08-14 05:14:59 UTC
No response, closing bug.