From 1897cfd7a6e193b42ca95e830e9485f5201a995c Mon Sep 17 00:00:00 2001 From: csmartdalton Date: Fri, 3 Jun 2016 08:50:54 -0700 Subject: Abandon offset support with texel buffers We don't seem to require nonzero offsets for texel buffers at this point in time, and requiring this feature greatly reduces the number of desktop clients that can use texel buffers. If we find a use for offsets later we can always add it back as a separate feature. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2036953002 Review-Url: https://codereview.chromium.org/2036953002 --- src/gpu/gl/GrGLProgram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/gl/GrGLProgram.cpp') diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp index 040c57de3a..a87aa5ad5f 100644 --- a/src/gpu/gl/GrGLProgram.cpp +++ b/src/gpu/gl/GrGLProgram.cpp @@ -159,7 +159,7 @@ void GrGLProgram::bindTextures(const GrProcessor& processor, } for (int i = 0; i < processor.numBuffers(); ++i) { const GrBufferAccess& access = processor.bufferAccess(i); - fGpu->bindTexelBuffer((*nextSamplerIdx)++, access.offsetInBytes(), access.texelConfig(), + fGpu->bindTexelBuffer((*nextSamplerIdx)++, access.texelConfig(), static_cast(access.buffer())); } } -- cgit v1.2.3