Parcourir la source

just force the barrier on UpdateTexture actually

cosmonaut il y a 1 an
Parent
commit
3eab599977
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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.h = rect->h;
     tex_dst.d = 1;
     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_EndGPUCopyPass(cpass);
     SDL_ReleaseGPUTransferBuffer(renderdata->device, tbuf);
     SDL_ReleaseGPUTransferBuffer(renderdata->device, tbuf);