Add glTexGen funcs to interface
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/23513006
git-svn-id: http://skia.googlecode.com/svn/trunk@11032 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp
index 3f58c1b..2b1795d 100644
--- a/src/gpu/gl/GrGpuGL_program.cpp
+++ b/src/gpu/gl/GrGpuGL_program.cpp
@@ -209,9 +209,9 @@
size.set(rt->width(), rt->height());
const SkMatrix& vm = this->getDrawState().getViewMatrix();
- if (fHWPathStencilMatrixState.fRenderTargetOrigin != rt->origin() ||
- !fHWPathStencilMatrixState.fViewMatrix.cheapEqualTo(viewMatrix) ||
- fHWPathStencilMatrixState.fRenderTargetSize!= size) {
+ if (fHWProjectionMatrixState.fRenderTargetOrigin != rt->origin() ||
+ !fHWProjectionMatrixState.fViewMatrix.cheapEqualTo(viewMatrix) ||
+ fHWProjectionMatrixState.fRenderTargetSize!= size) {
// rescale the coords from skia's "device" coords to GL's normalized coords,
// and perform a y-flip if required.
SkMatrix m;
@@ -249,9 +249,9 @@
};
GL_CALL(MatrixMode(GR_GL_PROJECTION));
GL_CALL(LoadMatrixf(mv));
- fHWPathStencilMatrixState.fViewMatrix = vm;
- fHWPathStencilMatrixState.fRenderTargetSize = size;
- fHWPathStencilMatrixState.fRenderTargetOrigin = rt->origin();
+ fHWProjectionMatrixState.fViewMatrix = vm;
+ fHWProjectionMatrixState.fRenderTargetSize = size;
+ fHWProjectionMatrixState.fRenderTargetOrigin = rt->origin();
}
}