Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_CreateTexture fails but still returns a texture #12309

Open
francisdb opened this issue Feb 17, 2025 · 0 comments
Open

SDL_CreateTexture fails but still returns a texture #12309

francisdb opened this issue Feb 17, 2025 · 0 comments

Comments

@francisdb
Copy link

francisdb commented Feb 17, 2025

Linux
XWayland
SDL 3.2.4 (b5c3eab)
OpenGL (default render driver)

PLOGE << "SDL_GetError for DMD: " << SDL_GetError();
m_pTexture = SDL_CreateTexture(m_pRenderer, SDL_PIXELFORMAT_RGB24, SDL_TEXTUREACCESS_STREAMING, m_pRGB24DMD->GetWidth(), m_pRGB24DMD->GetHeight());
PLOGE << "SDL_GetError for DMD: " << SDL_GetError();

m_pTexture is not NULL

Output

11:06:25.220 ERROR [135507] [VP::DMDWindow::Render@106] SDL_GetError for DMD: 
11:06:52.536 ERROR [135507] [VP::DMDWindow::Render@108] SDL_GetError for DMD: Could not make GL context current: BadAccess (attempt to access private resource denied)

The window using that texture is not being rendered in this case.

This call does not fail when setting SDL_RENDER_DRIVER="vulkan"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant