summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-31 04:50:41 +0200
committerbunnei <bunneidev@gmail.com>2018-05-31 04:50:41 +0200
commit49309b58486391dedd90cdc9fcf57744fc35bd7e (patch)
tree9f70cf62366d300bb0d2a8dae32c34a52b98a09b
parentgl_rasterizer_cache: Implement PixelFormat RGBA16F. (diff)
downloadyuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.tar
yuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.tar.gz
yuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.tar.bz2
yuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.tar.lz
yuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.tar.xz
yuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.tar.zst
yuzu-49309b58486391dedd90cdc9fcf57744fc35bd7e.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 193362f1c..10a460a82 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -59,7 +59,8 @@ static const FormatTuple& GetFormatTuple(PixelFormat pixel_format, ComponentType
const SurfaceType type = SurfaceParams::GetFormatType(pixel_format);
if (type == SurfaceType::ColorTexture) {
ASSERT(static_cast<size_t>(pixel_format) < tex_format_tuples.size());
- // For now only UNORM components are supported
+ // For now only UNORM components are supported, or RGBA16F which is type FLOAT
+ ASSERT(component_type == ComponentType::UNorm || pixel_format == PixelFormat::RGBA16F);
return tex_format_tuples[static_cast<unsigned int>(pixel_format)];
} else if (type == SurfaceType::Depth || type == SurfaceType::DepthStencil) {
// TODO(Subv): Implement depth formats