diff options
author | 2016-06-03 08:50:54 -0700 | |
---|---|---|
committer | 2016-06-03 08:50:54 -0700 | |
commit | 1897cfd7a6e193b42ca95e830e9485f5201a995c (patch) | |
tree | 697ddd44873c615bce81250008735d2b47a9e40b /src/gpu/gl/GrGLProgram.cpp | |
parent | b73c24b01a411843a98d4ccab7a39341d927e7fd (diff) |
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
Diffstat (limited to 'src/gpu/gl/GrGLProgram.cpp')
-rw-r--r-- | src/gpu/gl/GrGLProgram.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GrGLBuffer*>(access.buffer())); } } |