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 2336 - SDL_RenderSetClipRect is always relative to the window
Summary: SDL_RenderSetClipRect is always relative to the window
Status: RESOLVED DUPLICATE of bug 2269
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.1
Hardware: x86 All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-06 09:38 UTC by valentin.soudier
Modified: 2015-02-18 21:44 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valentin.soudier 2014-01-06 09:38:02 UTC
Problem discussed here : https://forums.libsdl.org/viewtopic.php?t=9866&sid=0c905cfc712a811965568be86aa4b8a9

I'm not sure this is a bug, but SDL_RenderSetClipRect() is currently always relative to the point 0,0 of the window.

I think the SDL clipping rectangle should just be relative to the viewport (or to the point 0,0 of the render texture, if any).
Comment 1 valentin.soudier 2014-01-06 15:19:57 UTC
Sorry, duplicate of https://bugzilla.libsdl.org/show_bug.cgi?id=2269 , I didn't see it before.

*** This bug has been marked as a duplicate of bug 2269 ***
Comment 2 valentin.soudier 2014-01-24 11:42:23 UTC
Finally I'm not sure that this is a duplicate so I'm reopening it.

Feel free to status it as a duplicate again if it really is.
Comment 3 Leonardo 2014-06-07 20:09:33 UTC
It is a duplicate of that same bug.
Comment 4 Ryan C. Gordon 2015-02-18 21:44:21 UTC
Re-marking as a duplicate.

--ryan.

*** This bug has been marked as a duplicate of bug 2269 ***