From c4ff0ba137fdac10c9400ab1138fd1d71635664a Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Fri, 22 Jun 2018 17:21:28 +0200 Subject: [PATCH] renderer_opengl: Renumber all texture units. We spend lots of texture units for our texture buffers. As they are now feed from one buffer, there is no need to have the big gap in the list of IDs. --- src/video_core/renderer_opengl/gl_state.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 4408506c3..1cf9b8d36 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -20,9 +20,9 @@ constexpr TextureUnit PicaTexture(int unit) { return TextureUnit{unit}; } -constexpr TextureUnit TextureCube{10}; -constexpr TextureUnit TextureBufferLUT_RG{11}; -constexpr TextureUnit TextureBufferLUT_RGBA{12}; +constexpr TextureUnit TextureCube{3}; +constexpr TextureUnit TextureBufferLUT_RG{4}; +constexpr TextureUnit TextureBufferLUT_RGBA{5}; } // namespace TextureUnits