Skip to content

Commit

Permalink
Enable SDL_HINT_FRAMEBUFFER_ACCELERATION
Browse files Browse the repository at this point in the history
Not sure if this does anything, really.
  • Loading branch information
Vultraz committed Jun 2, 2017
1 parent e65cc08 commit 688b797
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sdl/window.cpp
Expand Up @@ -57,6 +57,9 @@ window::window(const std::string& title,
// Use linear scaling when rendering, if applicable.
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");

// Enable 3D rendering for the window surface. Not sure if this really does anything.
SDL_SetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION, "1");

pixel_format_ = info.texture_formats[0];

fill(0,0,0);
Expand Down

0 comments on commit 688b797

Please sign in to comment.