Commit 5971e8bd authored by Dalai Felinto's avatar Dalai Felinto
Browse files

Update addon for latest API changes

parent b1854c9c
......@@ -136,7 +136,7 @@ class HMD_Base:
"""
try:
for i in range(2):
self._offscreen_object[i] = gpu.offscreen.new(self._width[i], self._height[i])
self._offscreen_object[i] = gpu.offscreen.new(self._width[i], self._height[i], 0)
self._framebuffer_object[i] = self._offscreen_object[i].framebuffer_object
self._color_object[i] = self._offscreen_object[i].color_object
......
......@@ -252,7 +252,7 @@ class VirtualRealityDisplayOperator(bpy.types.Operator):
modelview_matrix = self._hmd.modelview_matrix
# drawing
offscreen_object.draw(projection_matrix, modelview_matrix)
offscreen_object.draw_view3d(projection_matrix, modelview_matrix)
self._hmd.frameReady()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment