Skip to content

Commit

Permalink
graphics-hook: Remove unused member variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jpark37 authored and Lain-B committed Dec 10, 2023
1 parent 395ab0f commit 263e027
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions plugins/win-capture/graphics-hook/d3d11-capture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ struct d3d11_data {
bool using_shtex;
bool multisampled;

ID3D11Texture2D *scale_tex;
ID3D11ShaderResourceView *scale_resource;

ID3D11VertexShader *vertex_shader;
ID3D11InputLayout *vertex_layout;
ID3D11PixelShader *pixel_shader;

ID3D11SamplerState *sampler_state;
ID3D11BlendState *blend_state;
ID3D11DepthStencilState *zstencil_state;
ID3D11RasterizerState *raster_state;

ID3D11Buffer *vertex_buffer;

union {
/* shared texture */
struct {
Expand All @@ -51,27 +37,6 @@ static struct d3d11_data data = {};

void d3d11_free(void)
{
if (data.scale_tex)
data.scale_tex->Release();
if (data.scale_resource)
data.scale_resource->Release();
if (data.vertex_shader)
data.vertex_shader->Release();
if (data.vertex_layout)
data.vertex_layout->Release();
if (data.pixel_shader)
data.pixel_shader->Release();
if (data.sampler_state)
data.sampler_state->Release();
if (data.blend_state)
data.blend_state->Release();
if (data.zstencil_state)
data.zstencil_state->Release();
if (data.raster_state)
data.raster_state->Release();
if (data.vertex_buffer)
data.vertex_buffer->Release();

capture_free();

if (data.using_shtex) {
Expand Down

0 comments on commit 263e027

Please sign in to comment.