Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
4321f480
Commit
4321f480
authored
Oct 24, 2013
by
Janis Born
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix possible crash in SimpleRiftController when no HMD is connected
parent
4c015e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/ACGL/HardwareSupport/SimpleRiftController.cc
src/ACGL/HardwareSupport/SimpleRiftController.cc
+7
-6
No files found.
src/ACGL/HardwareSupport/SimpleRiftController.cc
View file @
4321f480
...
...
@@ -150,15 +150,16 @@ SimpleRiftController::~SimpleRiftController()
void
SimpleRiftController
::
setPrediction
(
float
_seconds
)
{
if
(
_seconds
>=
0.0
f
)
{
mORSensorFusion
->
SetPrediction
(
_seconds
);
}
else
{
mORSensorFusion
->
SetPrediction
(
0.0
f
,
false
);
if
(
getSuccessfulConnected
())
{
if
(
_seconds
>=
0.0
f
)
{
mORSensorFusion
->
SetPrediction
(
_seconds
);
}
else
{
mORSensorFusion
->
SetPrediction
(
0.0
f
,
false
);
}
mPredictionTime
=
_seconds
;
}
mPredictionTime
=
_seconds
;
}
glm
::
mat4
SimpleRiftController
::
getProjectionMatrixFromCamera
()
{
if
(
!
mCamera
)
return
glm
::
mat4
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment