Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3d2c41b

Browse files
bsalomonSkia Commit-Bot
authored andcommitted
Look for GL_ARB_texture_rectangle on SwiftShader contexts
Bug: skia:9832 Change-Id: Id3841a36dc94f16db4c06398944a7b0497344ccd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289136 Commit-Queue: Greg Daniel <egdaniel@google.com> Auto-Submit: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
1 parent 4e9cfe7 commit 3d2c41b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gpu/gl/GrGLCaps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
235235
fRectangleTextureSupport = true;
236236
}
237237
} else if (GR_IS_GR_GL_ES(standard)) {
238-
if (kChromium_GrGLDriver == ctxInfo.driver()) {
238+
if (ctxInfo.driver() == kChromium_GrGLDriver ||
239+
ctxInfo.driver() == kSwiftShader_GrGLDriver) {
239240
fRectangleTextureSupport = ctxInfo.hasExtension("GL_ARB_texture_rectangle");
240241
} else {
241242
// ANGLE will advertise the extension in ES2 contexts but actually using the texture in

0 commit comments

Comments
 (0)