aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuGL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/src/GrGpuGL.cpp')
-rw-r--r--gpu/src/GrGpuGL.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gpu/src/GrGpuGL.cpp b/gpu/src/GrGpuGL.cpp
index 177ddb105c..973e1e4a53 100644
--- a/gpu/src/GrGpuGL.cpp
+++ b/gpu/src/GrGpuGL.cpp
@@ -471,10 +471,11 @@ GrGpuGL::GrGpuGL() {
// TODO: Make these a preprocess that generate some compile time constants.
// TODO: probe once at startup, rather than once per context creation.
- fNPOTRenderTargetSupport = GrGLGetGLInterface()->fNPOTRenderTargetSupport;
- if (fNPOTRenderTargetSupport < 0) {
+ if (GrGLGetGLInterface()->fNPOTRenderTargetSupport < 0) {
fNPOTRenderTargetSupport =
probe_for_npot_render_target_support(fNPOTTextureSupport);
+ } else {
+ fNPOTRenderTargetSupport = GrGLGetGLInterface()->fNPOTRenderTargetSupport;
}
if (gPrintStartupSpew) {