Skip to content

Commit

Permalink
Merge pull request #292 from 06wj/master
Browse files Browse the repository at this point in the history
Fix framebuffer texture capture with texStorage2D bug
  • Loading branch information
sebavan committed Dec 20, 2023
2 parents 932eee5 + 0cff786 commit 77da612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/states/context/visualState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ export class VisualState extends BaseState {
const info = storage.__SPECTOR_Object_CustomData as ITextureRecorderData;
width = info.width;
height = info.height;
textureType = info.type;
if (info.type !== undefined) {
textureType = info.type;
}
knownAsTextureArray = info.target === WebGlConstants.TEXTURE_2D_ARRAY.name;
if (!ReadPixelsHelper.isSupportedCombination(info.type, info.format, info.internalFormat)) {
return;
Expand Down

0 comments on commit 77da612

Please sign in to comment.