SDL2 strange behaviour of hardware rendering
I want to create my first game. Nothing special, just blue rectangle moving when WSAD keys are pressed. The problem is that when I run my game, there are bugs with rectangle(See image below). Bugs appears only during horizontal movement, and not vertical. Which is interesting, when I changed line: renderer = SDL_CreateRenderer(display, -1, SDL_RENDERER_ACCELERATED) to: renderer = SDL_CreateRenderer(display, -1, SDL_RENDERER_SOFTWARE) everything is OK I am using Windows 10, MinGw with CMake(C++14), and SDL 2.0.8, Intel core i5 7th gen, Radeon M7 R465 Im my code OnRender function is responsible