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 - SDL_RenderCopy behaves differently when building for release
Summary: SDL_RenderCopy behaves differently when building for release
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.3
Hardware: x86_64 Windows 8
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-14 10:20 UTC by Wolfos
Modified: 2017-08-14 05:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.