Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 910 vs 911 for /trunk/Source Code/Platform/Video/GFXDeviceObjects.cpp

Diff revisions: vs.
  @@ -35,7 +35,7 @@
35 35 }
36 36 };
37 37
38 - RenderTarget* GFXDevice::newRT(const vec2<U16>& resolution, const stringImpl& name) const {
38 + RenderTarget* GFXDevice::newRT(const RenderTargetDescriptor& descriptor) const {
39 39 std::unique_lock<std::mutex> lk(_gpuObjectArenaMutex);
40 40
41 41 RenderTarget* temp = nullptr;
  @@ -44,10 +44,10 @@
44 44 case RenderAPI::OpenGLES: {
45 45 /// Create and return a new framebuffer.
46 46 /// The callee is responsible for it's deletion!
47 - temp = new (_gpuObjectArena) glFramebuffer(refThis(this), resolution, name);
47 + temp = new (_gpuObjectArena) glFramebuffer(refThis(this), descriptor);
48 48 } break;
49 49 case RenderAPI::Direct3D: {
50 - temp = new (_gpuObjectArena) d3dRenderTarget(refThis(this), resolution, name);
50 + temp = new (_gpuObjectArena) d3dRenderTarget(refThis(this), descriptor);
51 51 } break;
52 52 default: {
53 53 DIVIDE_UNEXPECTED_CALL(Locale::get(_ID("ERROR_GFX_DEVICE_API")));