Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 769 vs 770 for /trunk/Source Code/Platform/Video/GFXDevice.cpp

Diff revisions: vs.
  @@ -368,11 +368,9 @@
368 368 rt->create(w, h);
369 369 }
370 370 }
371 - for (RenderTarget* rt : _rtPool.renderTargets(RenderTargetID::SCREEN_PREV)) {
372 - if (rt) {
373 - rt->create(w, h);
374 - }
375 - }
371 +
372 + _previousDepthBuffer._rt->create(w, h);
373 +
376 374 // Update post-processing render targets and buffers
377 375 PostFX::instance().updateResolution(w, h);
378 376 _gpuBlock._data._invScreenDimension.xy(1.0f / w, 1.0f / h);
  @@ -398,7 +396,7 @@
398 396 case MATRIX::VIEW_INV:
399 397 return _gpuBlock.viewMatrixInv();
400 398 case MATRIX::PROJECTION_INV:
401 - return _gpuBlock.projectionMatrixInv();
399 + return _gpuBlock._data._InvProjectionMatrix;
402 400 case MATRIX::VIEW_PROJECTION_INV:
403 401 return _gpuBlock.viewProjectionMatrixInv();
404 402 case MATRIX::TEXTURE:
  @@ -424,7 +422,7 @@
424 422 case MATRIX::VIEW_INV:
425 423 return _gpuBlock.viewMatrixInv();
426 424 case MATRIX::PROJECTION_INV:
427 - return _gpuBlock.projectionMatrixInv();
425 + return _gpuBlock._data._InvProjectionMatrix;
428 426 case MATRIX::VIEW_PROJECTION_INV:
429 427 return _gpuBlock.viewProjectionMatrixInv();
430 428 case MATRIX::TEXTURE: