diff --git a/sdl/render.go b/sdl/render.go
index <HASH>..<HASH> 100644
--- a/sdl/render.go
+++ b/sdl/render.go
@@ -191,6 +191,9 @@ static int SDLCALL SDL_GetTextureScaleMode(SDL_Texture * texture, SDL_ScaleMode 
 }
 
 static int SDL_LockTextureToSurface(SDL_Texture *texture, const SDL_Rect *rect, SDL_Surface **surface)
+{
+	return -1;
+}
 #endif
sdl/render: fix broken build on older SDL2