diff options
Diffstat (limited to 'src/osd/modules/render/d3d/d3dcomm.h')
-rw-r--r-- | src/osd/modules/render/d3d/d3dcomm.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/osd/modules/render/d3d/d3dcomm.h b/src/osd/modules/render/d3d/d3dcomm.h index 98a720988c0..38b93adb7ac 100644 --- a/src/osd/modules/render/d3d/d3dcomm.h +++ b/src/osd/modules/render/d3d/d3dcomm.h @@ -220,7 +220,7 @@ class d3d_render_target { public: // construction/destruction - d3d_render_target(): target_width(0), target_height(0), width(0), height(0), screen_index(0), bloom_count(0), cache_index(0) + d3d_render_target(): target_width(0), target_height(0), width(0), height(0), screen_index(0), bloom_count(0) { for (int index = 0; index < MAX_BLOOM_COUNT; index++) { @@ -234,16 +234,16 @@ public: source_surface[index] = nullptr; target_texture[index] = nullptr; target_surface[index] = nullptr; - cache_texture[index] = nullptr; - cache_surface[index] = nullptr; } + + cache_texture = nullptr; + cache_surface = nullptr; } ~d3d_render_target(); bool init(renderer_d3d9 *d3d, int source_width, int source_height, int target_width, int target_height, int screen_index); int next_index(int index) { return ++index > 1 ? 0 : index; } - int next_cache_index() { cache_index = ++cache_index > 1 ? 0 : cache_index; return cache_index; } // real target dimension int target_width; @@ -260,8 +260,8 @@ public: IDirect3DSurface9 *source_surface[2]; IDirect3DTexture9 *source_texture[2]; - IDirect3DSurface9 *cache_surface[2]; - IDirect3DTexture9 *cache_texture[2]; + IDirect3DSurface9 *cache_surface; + IDirect3DTexture9 *cache_texture; IDirect3DSurface9 *bloom_surface[MAX_BLOOM_COUNT]; IDirect3DTexture9 *bloom_texture[MAX_BLOOM_COUNT]; @@ -269,8 +269,6 @@ public: float bloom_dims[MAX_BLOOM_COUNT][2]; int bloom_count; - - int cache_index; }; #endif |