Skip to content

Commit

Permalink
Merge pull request #276 from Inuniku/fix/get-capture-for-float-frameb…
Browse files Browse the repository at this point in the history
…uffer

fix capture for float type framebuffers
  • Loading branch information
sebavan committed Aug 23, 2023
2 parents c4a6755 + 9aef187 commit bac9e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/states/context/visualState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class VisualState extends BaseState {

const status = this.context.checkFramebufferStatus(WebGlConstants.FRAMEBUFFER.value);
if (status === WebGlConstants.FRAMEBUFFER_COMPLETE.value) {
this.getCapture(gl, webglConstant.name, x, y, width, height, 0, 0, WebGlConstants.UNSIGNED_BYTE.value);
this.getCapture(gl, webglConstant.name, x, y, width, height, 0, 0, componentType);
}

gl.bindFramebuffer(WebGlConstants.FRAMEBUFFER.value, frameBuffer);
Expand Down

0 comments on commit bac9e97

Please sign in to comment.