소스 검색

just force the barrier on UpdateTexture actually

cosmonaut 1 년 전
부모
커밋
3eab599977
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/render/gpu/SDL_render_gpu.c

+ 1 - 2
src/render/gpu/SDL_render_gpu.c

@@ -303,8 +303,7 @@ static bool GPU_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture,
     tex_dst.h = rect->h;
     tex_dst.d = 1;
 
-    bool cycle = texture->w == rect->w && texture->h == rect->h;
-    SDL_UploadToGPUTexture(cpass, &tex_src, &tex_dst, cycle);
+    SDL_UploadToGPUTexture(cpass, &tex_src, &tex_dst, false);
     SDL_EndGPUCopyPass(cpass);
     SDL_ReleaseGPUTransferBuffer(renderdata->device, tbuf);