diff options
author | 2012-05-31 17:59:23 +0000 | |
---|---|---|
committer | 2012-05-31 17:59:23 +0000 | |
commit | 4d063dea5ee9d5a62e3566a07cb8386cb1a59585 (patch) | |
tree | 162f32b90dedc12b0e2cbb8e5554c9711576e789 /src/gpu/gl/GrGpuGL.cpp | |
parent | d4144060731a94a5b057dfad407e6e3c294435cf (diff) |
Add glTexParameteriv to GL interface
Comitted on behalf of jin.a.yang@intel.com
Review URL: http://codereview.appspot.com/6213069/
git-svn-id: http://skia.googlecode.com/svn/trunk@4099 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index b465a883f5..8b28c9fb9f 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -2138,19 +2138,9 @@ inline const GrGLenum* get_swizzle(GrPixelConfig config, } void set_tex_swizzle(GrGLenum swizzle[4], const GrGLInterface* gl) { - // should add texparameteri to interface to make 1 instead of 4 calls here - GR_GL_CALL(gl, TexParameteri(GR_GL_TEXTURE_2D, - GR_GL_TEXTURE_SWIZZLE_R, - swizzle[0])); - GR_GL_CALL(gl, TexParameteri(GR_GL_TEXTURE_2D, - GR_GL_TEXTURE_SWIZZLE_G, - swizzle[1])); - GR_GL_CALL(gl, TexParameteri(GR_GL_TEXTURE_2D, - GR_GL_TEXTURE_SWIZZLE_B, - swizzle[2])); - GR_GL_CALL(gl, TexParameteri(GR_GL_TEXTURE_2D, - GR_GL_TEXTURE_SWIZZLE_A, - swizzle[3])); + GR_GL_CALL(gl, TexParameteriv(GR_GL_TEXTURE_2D, + GR_GL_TEXTURE_SWIZZLE_RGBA, + reinterpret_cast<const GrGLint*>(swizzle))); } } |