Skip to content

Commit aa2f3f5

Browse files
committed
Fix #227 & #225 texStorage2D capture
1 parent 1121b4c commit aa2f3f5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

documentation/changeLogs.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Please, find below the per release summary of the contribution added to the proj
1212
* Add [spector.log support](https://github.com/BabylonJS/Spector.js/issues/171)
1313
* Fix [Shader Type display](https://github.com/BabylonJS/Spector.js/issues/179)
1414
* Add [Pixelated Texture on Nearest mag filter](https://github.com/BabylonJS/Spector.js/issues/107)
15+
* Fix [texture capture with texStorage2D](https://github.com/BabylonJS/Spector.js/issues/227)
1516

1617
## v0.9.27
1718
* Fixed compressed textures gathered sizes.

src/backend/recorders/texture2DRecorder.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ export class Texture2DRecorder extends BaseRecorder<WebGLTexture> {
6262
}
6363

6464
protected update(functionInformation: IFunctionInformation, target: string, instance: WebGLTexture): number {
65-
if (functionInformation.arguments.length >= 2 && functionInformation.arguments[1] !== 0) {
66-
return 0;
67-
}
68-
6965
const customData = this.getCustomData(functionInformation, target, instance);
7066
if (!customData) {
7167
return 0;
@@ -124,7 +120,7 @@ export class Texture2DRecorder extends BaseRecorder<WebGLTexture> {
124120
// Custom data required to display the texture.
125121
customData = {
126122
target,
127-
// level: functionInformation.arguments[1],
123+
// number of level: functionInformation.arguments[1],
128124
internalFormat: functionInformation.arguments[2],
129125
width: functionInformation.arguments[3],
130126
height: functionInformation.arguments[4],

0 commit comments

Comments
 (0)