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 - Render set target texture, draw without effect if window hidden.
Summary: Render set target texture, draw without effect if window hidden.
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.1
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-10 08:36 UTC by aitemp
Modified: 2020-09-10 08:36 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 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);