Skip to content

Commit f499f6d

Browse files
committed
Fix invalid access to render backend
1 parent 34dbbd9 commit f499f6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backends/sdl2_renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ void Renderer::releaseSurfaceImpl(SurfaceImpl *surfaceImpl) {
520520
}
521521

522522
ret_code Renderer::getSurfaceInfo(Context &ctx, int32_t &w, int32_t &h) {
523-
SDLContext *sdlCtx = (SDLContext *) ctx.mBackendCtx;
523+
SDLContext *sdlCtx = (SDLContext *) ctx.mBackendCtx->mHandle;
524524
if (sdlCtx->mSurface == nullptr) {
525525
return ErrorCode;
526526
}

0 commit comments

Comments
 (0)