Repository navigation
Compressed textures: advertise the driver's compressed-texture extens… - #6
Merged
Merged
Conversation
…ions and fix the compressedTex* uploads getSupportedExtensions now lists WEBGL_compressed_texture_s3tc, _s3tc_srgb, EXT_texture_compression_bptc and _rgtc, WEBGL_compressed_texture_astc when the driver has them, and WEBGL_compressed_texture_etc always (ETC2 is core in GLES 3.0); getExtension returns their format constants. The four compressedTex* methods passed an extra byte-length argument that native-gles 0.7.1 reads as the data array, so every typed-array upload threw 'Invalid argument'; they now pass (..., format, data). Tests: test-compressed-textures draws DXT1 blocks read back as red and green through all four uploads (whole arrays, srcOffset/srcLengthOverride, a view with a byteOffset) and checks the extension list against the driver's; test-compressed-threejs draws a three.js CompressedTexture (three r150 or later via THREE_MODULE). Both fail without the fix.
…flow lists tests by hand)
…tall system dependencies' with 'Temporary failure resolving' while GitHub reported no incident)
…I installs three r184 so it runs there
…test always runs, and a missing or pre-r150 three fails instead of skipping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #5