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

Summary: RenderTargets under Windows
Product: SDL Reporter: Sam Lantinga <slouken>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86   
OS: Windows (All)   

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