Skip to content

SDL_CreateTexture fails but still returns a texture #12309

Open
@francisdb

Description

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions