From 78f415e8124069a4c02222f40afd2a0136e7c159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 19 Feb 2015 20:06:02 -0800 Subject: [PATCH] GL: Added unsigned int image samplers. --- src/renderer_gl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 8b880f807..84445e3b0 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2640,6 +2640,10 @@ namespace bgfx case GL_IMAGE_2D: case GL_IMAGE_3D: case GL_IMAGE_CUBE: + case GL_UNSIGNED_INT_IMAGE_1D: + case GL_UNSIGNED_INT_IMAGE_2D: + case GL_UNSIGNED_INT_IMAGE_3D: + case GL_UNSIGNED_INT_IMAGE_CUBE: return UniformType::Uniform1iv; }; @@ -2837,6 +2841,10 @@ namespace bgfx case GL_IMAGE_2D: case GL_IMAGE_3D: case GL_IMAGE_CUBE: + case GL_UNSIGNED_INT_IMAGE_1D: + case GL_UNSIGNED_INT_IMAGE_2D: + case GL_UNSIGNED_INT_IMAGE_3D: + case GL_UNSIGNED_INT_IMAGE_CUBE: BX_TRACE("Sampler #%d at location %d.", m_numSamplers, loc); m_sampler[m_numSamplers] = loc; m_numSamplers++;