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 5284

Summary: Render set target texture, draw without effect if window hidden.
Product: SDL Reporter: aitemp
Component: renderAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: All   

Description aitemp 2020-09-10 08:36:11 UTC
SDL_CreateWindowAndRenderer(width, height, SDL_WINDOW_HIDDEN, &window, &render);

texture = SDL_CreateTexture(render, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, w, h);

SDL_SetRenderTarget(render, texture);

SDL_RenderDrawLine(render, 0, 0, 10, 10); /* texture nothing happened */

SDL_SetRenderTarget(render, NULL);