From fe5ea927ede5cbcc5296b223d2a11b5f51bcf54b Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 18 Feb 2018 16:04:43 -0800 Subject: Minor update to checking errors when setting GL blend errors --- Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp index 7f582257..a12373aa 100644 --- a/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp @@ -620,12 +620,11 @@ namespace Diligent auto srcFactorAlpha = BlendFactor2GLBlend( RT.SrcBlendAlpha ); auto dstFactorAlpha = BlendFactor2GLBlend( RT.DestBlendAlpha ); glBlendFuncSeparatei( i, srcFactorRGB, dstFactorRGB, srcFactorAlpha, dstFactorAlpha ); - CHECK_GL_ERROR( "Failed to set blending factors" ); - + CHECK_GL_ERROR( "Failed to set separate blending factors" ); auto modeRGB = BlendOperation2GLBlendOp( RT.BlendOp ); auto modeAlpha = BlendOperation2GLBlendOp( RT.BlendOpAlpha ); glBlendEquationSeparatei( i, modeRGB, modeAlpha ); - CHECK_GL_ERROR( "Failed to set blending equations" ); + CHECK_GL_ERROR( "Failed to set separate blending equations" ); } else { -- cgit v1.2.3