Index: src/gpu/gl/GrGLCaps.cpp |
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
index dc4ef4c160459fbc655287446d50322bfd0c4e5a..ac40060cdc473b150ea761e82b112c94790b668c 100644 |
--- a/src/gpu/gl/GrGLCaps.cpp |
+++ b/src/gpu/gl/GrGLCaps.cpp |
@@ -599,6 +599,14 @@ void GrGLCaps::initConfigTexturableTable(const GrGLContextInfo& ctxInfo, const G |
ctxInfo.hasExtension("GL_OES_texture_float")); |
} |
fConfigTextureSupport[kRGBA_float_GrPixelConfig] = hasFPTextures; |
+ |
bsalomon
2014/09/19 13:47:04
Need tests for support on OpenGL, not just GLES.
sugoi1
2014/09/24 19:12:48
Done.
|
+ // 3D textures. Texture wrap modes and mip-mapping is supported for power |
+ // of two 3D textures. Mip-mapping and texture wrap modes other than |
+ // CLAMP_TO_EDGE are not supported for non-power of two 3D textures. |
+ // The OES_texture_npot extension, if supported, will enable mip-mapping |
+ // and other wrap modes for non-power of two 3D textures. |
+ f3DTexImageSupport = |
+ ctxInfo.hasExtension("GL_OES_texture_3D"); // No need for npot for now |
} |
bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf, |