Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dalai Felinto
virtual_reality_viewport
Commits
29792359
Commit
29792359
authored
Oct 19, 2015
by
Dalai Felinto
Browse files
Make sure things still work with custom build
parent
a6a2274f
Changes
1
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/__init__.py
View file @
29792359
...
...
@@ -131,7 +131,10 @@ class HMD_Base:
try
:
for
i
in
range
(
2
):
self
.
_offscreen
[
i
]
=
gpu
.
offscreen
.
new
(
self
.
_width
[
i
],
self
.
_height
[
i
],
0
)
self
.
_color_texture
[
i
]
=
self
.
_offscreen
[
i
].
color_texture
if
hasattr
(
self
.
_offscreen
[
i
],
"color_texture"
):
self
.
_color_texture
[
i
]
=
self
.
_offscreen
[
i
].
color_texture
else
:
# TODO remove this once the patch is merged
self
.
_color_texture
[
i
]
=
self
.
_offscreen
[
i
].
color_object
except
Exception
as
E
:
print
(
E
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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