Browse Source

Fixing texture flags when forcing point sampling.

Dario Manesku 9 years ago
parent
commit
956622e360
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/renderer_gl.cpp

+ 2 - 2
src/renderer_gl.cpp

@@ -4437,11 +4437,11 @@ namespace bgfx { namespace gl
 		&&  !s_textureFilter[m_textureFormat])
 		&&  !s_textureFilter[m_textureFormat])
 		{
 		{
 			// Force point sampling when texture format doesn't support linear sampling.
 			// Force point sampling when texture format doesn't support linear sampling.
-			_flags &= 0
+			_flags &= ~(0
 				| BGFX_TEXTURE_MIN_MASK
 				| BGFX_TEXTURE_MIN_MASK
 				| BGFX_TEXTURE_MAG_MASK
 				| BGFX_TEXTURE_MAG_MASK
 				| BGFX_TEXTURE_MIP_MASK
 				| BGFX_TEXTURE_MIP_MASK
-				;
+				);
 			_flags |= 0
 			_flags |= 0
 				| BGFX_TEXTURE_MIN_POINT
 				| BGFX_TEXTURE_MIN_POINT
 				| BGFX_TEXTURE_MAG_POINT
 				| BGFX_TEXTURE_MAG_POINT