Browse Source

gl_rasterizer_cache: Track texture target and depth in the cache.

nce_cpp
bunnei 7 years ago
parent
commit
036c50c9a3
  1. 5
      src/video_core/renderer_opengl/gl_rasterizer_cache.h

5
src/video_core/renderer_opengl/gl_rasterizer_cache.h

@ -718,8 +718,9 @@ struct SurfaceParams {
/// Checks if surfaces are compatible for caching
bool IsCompatibleSurface(const SurfaceParams& other) const {
return std::tie(pixel_format, type, width, height) ==
std::tie(other.pixel_format, other.type, other.width, other.height);
return std::tie(pixel_format, type, width, height, target, depth) ==
std::tie(other.pixel_format, other.type, other.width, other.height, other.target,
other.depth);
}
VAddr addr;

Loading…
Cancel
Save