From d65ce46ca04f8db1f0109ab7bf6390d5ef75b895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 8 Feb 2016 08:58:16 -0800 Subject: [PATCH] GL: Check sampler object support. --- src/renderer_gl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index be4ab0a0..ff6184cc 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2389,7 +2389,10 @@ namespace bgfx { namespace gl if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL) || BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 30) ) { - GL_CHECK(glBindSampler(0, 0) ); + if (m_samplerObjectSupport) + { + GL_CHECK(glBindSampler(0, 0) ); + } } } }