Skip to content

Commit

Permalink
Few additional dummy functions on the NullGraphicsDevice to handle en…
Browse files Browse the repository at this point in the history
…gine examples failing. (#5956)

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jan 19, 2024
1 parent ee24817 commit 9602a97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/platform/graphics/null/null-graphics-device.js
Expand Up @@ -74,6 +74,15 @@ class NullGraphicsDevice extends GraphicsDevice {
super.frameEnd();
}

updateBegin() {
}

updateEnd() {
}

readPixels(x, y, w, h, pixels) {
}

createVertexBufferImpl(vertexBuffer, format) {
return new NullVertexBuffer(vertexBuffer, format);
}
Expand Down

0 comments on commit 9602a97

Please sign in to comment.