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 126 - RenderTargets under Windows
Summary: RenderTargets under Windows
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.0
Hardware: x86 Windows (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 13:13 UTC by Sam Lantinga
Modified: 2006-02-01 04:47 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 Sam Lantinga 2006-01-31 13:13:05 UTC
Date: Mon, 31 Oct 2005 12:53:08 +0100 (CET)
From: Michi Hostettler <michihostettler2001@yahoo.de>
Subject: [SDL] [SDL-1.3] RenderTargets under Windows

hi,

i've probably found the bug why sdl rendertargets
don't work under windows. if you look at SDL_wingl.c,
WIN_GL_UnlockRenderTarget, the bug is if not
(target->texture) then wglMakeCurrent(GL_hdc, GL_hrc)
is NEVER called, and the buffer is not unbound.

solution: take the call to wglMakeCurrent(GL_hdc,
GL_hrc) out of the if-block.
Comment 1 Sam Lantinga 2006-01-31 13:13:20 UTC
Hrm, when can this happen?
Comment 2 Sam Lantinga 2006-02-01 04:47:13 UTC
This has been moved over to bug #129