SDL2 double buffer not working, still tearing
问题 I need a double buffer because i'm starting to notice tearing when I want to move my texture made tile map around the screen via mouse click. I'm using SDL2 and this is a SDL2 specific question, check out my code that produces tearing, whats wrong? //set up buffer and display bufferTexture = SDL_CreateTexture(renderer,SDL_PIXELFORMAT_RGBA8888,SDL_TEXTUREACCESS_STREAMING,800,600); displayTexture = SDL_CreateTexture(renderer,SDL_PIXELFORMAT_RGBA8888,SDL_TEXTUREACCESS_TARGET,800,600); while