diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-06 04:19:06 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-02-04 21:33:25 +0100 |
commit | 09a750e8662e5d4d608177fdfb69b398c3202cd6 (patch) | |
tree | 6d5b6af7cd77de75406516eb41eda42f2c963f4a /src/video_core/renderer_opengl | |
parent | VideoCore: Move LookupTexture out of debug_utils.h (diff) | |
download | yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.tar yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.tar.gz yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.tar.bz2 yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.tar.lz yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.tar.xz yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.tar.zst yuzu-09a750e8662e5d4d608177fdfb69b398c3202cd6.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 4167d3161..60380257a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -342,9 +342,8 @@ CachedSurface* RasterizerCacheOpenGL::GetSurface(const CachedSurface& params, bo Pica::Texture::TextureInfo tex_info; tex_info.width = params.width; tex_info.height = params.height; - tex_info.stride = - params.width * CachedSurface::GetFormatBpp(params.pixel_format) / 8; tex_info.format = (Pica::Regs::TextureFormat)params.pixel_format; + tex_info.SetDefaultStride(); tex_info.physical_address = params.addr; for (unsigned y = 0; y < params.height; ++y) { |