gl_rasterizer: Remove unused emu_window variable in RasterizerOpenGL
Silences an unused private variable warning.
This commit is contained in:
parent
db5b8b9c88
commit
ea08178dde
@ -22,7 +22,7 @@ void RendererBase::RefreshRasterizerSetting() {
|
|||||||
opengl_rasterizer_active = hw_renderer_enabled;
|
opengl_rasterizer_active = hw_renderer_enabled;
|
||||||
|
|
||||||
if (hw_renderer_enabled) {
|
if (hw_renderer_enabled) {
|
||||||
rasterizer = std::make_unique<OpenGL::RasterizerOpenGL>(render_window);
|
rasterizer = std::make_unique<OpenGL::RasterizerOpenGL>();
|
||||||
} else {
|
} else {
|
||||||
rasterizer = std::make_unique<VideoCore::SWRasterizer>();
|
rasterizer = std::make_unique<VideoCore::SWRasterizer>();
|
||||||
}
|
}
|
||||||
|
@ -44,12 +44,11 @@ static bool IsVendorAmd() {
|
|||||||
return gpu_vendor == "ATI Technologies Inc." || gpu_vendor == "Advanced Micro Devices, Inc.";
|
return gpu_vendor == "ATI Technologies Inc." || gpu_vendor == "Advanced Micro Devices, Inc.";
|
||||||
}
|
}
|
||||||
|
|
||||||
RasterizerOpenGL::RasterizerOpenGL(Frontend::EmuWindow& window)
|
RasterizerOpenGL::RasterizerOpenGL()
|
||||||
: is_amd(IsVendorAmd()), shader_dirty(true),
|
: is_amd(IsVendorAmd()), vertex_buffer(GL_ARRAY_BUFFER, VERTEX_BUFFER_SIZE, is_amd),
|
||||||
vertex_buffer(GL_ARRAY_BUFFER, VERTEX_BUFFER_SIZE, is_amd),
|
|
||||||
uniform_buffer(GL_UNIFORM_BUFFER, UNIFORM_BUFFER_SIZE, false),
|
uniform_buffer(GL_UNIFORM_BUFFER, UNIFORM_BUFFER_SIZE, false),
|
||||||
index_buffer(GL_ELEMENT_ARRAY_BUFFER, INDEX_BUFFER_SIZE, false),
|
index_buffer(GL_ELEMENT_ARRAY_BUFFER, INDEX_BUFFER_SIZE, false),
|
||||||
texture_buffer(GL_TEXTURE_BUFFER, TEXTURE_BUFFER_SIZE, false), emu_window{window} {
|
texture_buffer(GL_TEXTURE_BUFFER, TEXTURE_BUFFER_SIZE, false) {
|
||||||
|
|
||||||
allow_shadow = GLAD_GL_ARB_shader_image_load_store && GLAD_GL_ARB_shader_image_size &&
|
allow_shadow = GLAD_GL_ARB_shader_image_load_store && GLAD_GL_ARB_shader_image_size &&
|
||||||
GLAD_GL_ARB_framebuffer_no_attachments;
|
GLAD_GL_ARB_framebuffer_no_attachments;
|
||||||
|
@ -38,7 +38,7 @@ class ShaderProgramManager;
|
|||||||
|
|
||||||
class RasterizerOpenGL : public VideoCore::RasterizerInterface {
|
class RasterizerOpenGL : public VideoCore::RasterizerInterface {
|
||||||
public:
|
public:
|
||||||
explicit RasterizerOpenGL(Frontend::EmuWindow& renderer);
|
explicit RasterizerOpenGL();
|
||||||
~RasterizerOpenGL() override;
|
~RasterizerOpenGL() override;
|
||||||
|
|
||||||
void LoadDiskResources(const std::atomic_bool& stop_loading,
|
void LoadDiskResources(const std::atomic_bool& stop_loading,
|
||||||
@ -268,11 +268,9 @@ private:
|
|||||||
|
|
||||||
RasterizerCacheOpenGL res_cache;
|
RasterizerCacheOpenGL res_cache;
|
||||||
|
|
||||||
Frontend::EmuWindow& emu_window;
|
|
||||||
|
|
||||||
std::vector<HardwareVertex> vertex_batch;
|
std::vector<HardwareVertex> vertex_batch;
|
||||||
|
|
||||||
bool shader_dirty;
|
bool shader_dirty = true;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
UniformData data;
|
UniformData data;
|
||||||
|
Loading…
Reference in New Issue
Block a user