Skip to content

Commit

Permalink
fix framebuffer texture capture with texStorage2D bug
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Dec 20, 2023
1 parent 932eee5 commit 0cff786
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 0cff786

Please sign in to comment.