diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-11-19 23:17:16 +0100 |
---|---|---|
committer | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-11-19 23:17:16 +0100 |
commit | a595ed499d3a21a251c3376c0c34a589c32088a9 (patch) | |
tree | 9a0c90aa176447c7ee876d76a674b303e3e66d9a /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | Merge pull request #12036 from FernandoS27/you-should-have-more-than-one-towel (diff) | |
download | yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.tar yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.tar.gz yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.tar.bz2 yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.tar.lz yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.tar.xz yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.tar.zst yuzu-a595ed499d3a21a251c3376c0c34a589c32088a9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 6b8d4e554..6bfed08a1 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -168,15 +168,6 @@ RendererOpenGL::RendererOpenGL(Core::TelemetrySession& telemetry_session_, if (!GLAD_GL_ARB_seamless_cubemap_per_texture && !GLAD_GL_AMD_seamless_cubemap_per_texture) { glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS); } - // Enable unified vertex attributes and query vertex buffer address when the driver supports it - if (device.HasVertexBufferUnifiedMemory()) { - glEnableClientState(GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV); - glEnableClientState(GL_ELEMENT_ARRAY_UNIFIED_NV); - - glMakeNamedBufferResidentNV(vertex_buffer.handle, GL_READ_ONLY); - glGetNamedBufferParameterui64vNV(vertex_buffer.handle, GL_BUFFER_GPU_ADDRESS_NV, - &vertex_buffer_address); - } } RendererOpenGL::~RendererOpenGL() = default; @@ -680,13 +671,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { offsetof(ScreenRectVertex, tex_coord)); glVertexAttribBinding(PositionLocation, 0); glVertexAttribBinding(TexCoordLocation, 0); - if (device.HasVertexBufferUnifiedMemory()) { - glBindVertexBuffer(0, 0, 0, sizeof(ScreenRectVertex)); - glBufferAddressRangeNV(GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV, 0, vertex_buffer_address, - sizeof(vertices)); - } else { - glBindVertexBuffer(0, vertex_buffer.handle, 0, sizeof(ScreenRectVertex)); - } + glBindVertexBuffer(0, vertex_buffer.handle, 0, sizeof(ScreenRectVertex)); if (Settings::values.scaling_filter.GetValue() != Settings::ScalingFilter::NearestNeighbor) { glBindSampler(0, present_sampler.handle); |