Skip to content

Commit

Permalink
More windowsystem.cc V8 type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
avaer committed Feb 15, 2019
1 parent f9539df commit 7566c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/exokit-bindings/windowsystem/src/windowsystem.cc
Expand Up @@ -835,9 +835,9 @@ NAN_METHOD(ComposeLayers) {
rightViewMatrix = multiplyMatrices(rightViewMatrix, xrOffsetMatrix);
}

Local<Float32Array> leftProjectionMatrixFloat32Array = xrStateObj->Get(JS_STR("leftProjectionMatrix"));
Local<Float32Array> leftProjectionMatrixFloat32Array = Local<Float32Array>::Cast(xrStateObj->Get(JS_STR("leftProjectionMatrix")));
float *leftProjectionMatrix = (float *)((char *)leftProjectionMatrixFloat32Array->Buffer()->GetContents().Data() + leftProjectionMatrixFloat32Array->ByteOffset());
Local<Float32Array> rightProjectionMatrixFloat32Array = xrStateObj->Get(JS_STR("rightProjectionMatrix"));
Local<Float32Array> rightProjectionMatrixFloat32Array = Local<Float32Array>::Cast(xrStateObj->Get(JS_STR("rightProjectionMatrix")));
float *rightProjectionMatrix = (float *)((char *)rightProjectionMatrixFloat32Array->Buffer()->GetContents().Data() + rightProjectionMatrixFloat32Array->ByteOffset());

layers.push_back(LayerSpec{
Expand Down

0 comments on commit 7566c9b

Please sign in to comment.