History

clean version of the simple stereo ack, not available for Occulus yet

Sam Gateau committed 12 years ago

Commit d9ae3eb1 parent cc780001 file · +4 −3Browse files

Showing the changes to interface/src/renderer/Model.cpp (1 of 1 file). Show all

Unified · Split

interface/src/renderer/Model.cpp+4−3
@@ -1505,10 +1505,11 @@ void Model::setupBatchTransform(gpu::Batch& batch) { · 1504 unmodified lines
15051505 void Model::endScene(RenderMode mode, RenderArgs* args) {
15061506 PROFILE_RANGE(__FUNCTION__);
15071507
1508− auto side = RenderArgs::MONO;
1509− if (args) side = args->_renderSide;
1508+ RenderArgs::RenderSide renderSide = RenderArgs::MONO;
1509+ if (args) renderSide = args->_renderSide;
15101510
1511− if (side != RenderArgs::STEREO_RIGHT) {
1511+ // Do the rendering batch creation for mono or left eye, not for right eye
1512+ if (renderSide != RenderArgs::STEREO_RIGHT) {
15121513 // Let's introduce a gpu::Batch to capture all the calls to the graphics api
15131514 _sceneRenderBatch.clear();
15141515 gpu::Batch& batch = _sceneRenderBatch;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t