summaryrefslogtreecommitdiff
path: root/engine/src/renderer/opengl/graphics_mesh.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-05-28 19:58:28 +0200
committerHampusM <hampus@hampusmat.com>2026-05-28 19:58:28 +0200
commitea0e368379270cfbc10c28a1e63446a6f1c46c43 (patch)
tree0a36632da23bd78a6488331c6bea72cd05b2cf41 /engine/src/renderer/opengl/graphics_mesh.rs
parent038aead236e77f41e6d229510a5e25741a6815c6 (diff)
refactor(engine): adjust gl renderer to changes in opengl-bindings
Diffstat (limited to 'engine/src/renderer/opengl/graphics_mesh.rs')
-rw-r--r--engine/src/renderer/opengl/graphics_mesh.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/src/renderer/opengl/graphics_mesh.rs b/engine/src/renderer/opengl/graphics_mesh.rs
index 7db72d4..78de80c 100644
--- a/engine/src/renderer/opengl/graphics_mesh.rs
+++ b/engine/src/renderer/opengl/graphics_mesh.rs
@@ -6,7 +6,7 @@ use opengl_bindings::vertex_array::{
VertexArray as GlVertexArray,
VertexBufferSpec as GlVertexArrayVertexBufferSpec,
};
-use opengl_bindings::CurrentContextWithFns as GlCurrentContextWithFns;
+use opengl_bindings::MaybeCurrentContextWithFns as GlCurrentContextWithFns;
use crate::mesh::{Mesh, VertexAttrType};
use crate::renderer::MeshUsage;
@@ -26,7 +26,7 @@ impl GraphicsMesh
{
#[tracing::instrument(skip_all)]
pub fn new(
- current_context: &GlCurrentContextWithFns<'_>,
+ current_context: &GlCurrentContextWithFns,
mesh: &Mesh,
mesh_usage: MeshUsage,
vertex_desc: &ShaderVertexDescription,
@@ -145,7 +145,7 @@ impl GraphicsMesh
pub fn update(
&mut self,
- current_context: &GlCurrentContextWithFns<'_>,
+ current_context: &GlCurrentContextWithFns,
mesh: &Mesh,
mesh_usage: MeshUsage,
) -> Result<(), Error>
@@ -185,7 +185,7 @@ impl GraphicsMesh
Ok(())
}
- pub fn destroy(&mut self, curr_gl_ctx: &GlCurrentContextWithFns<'_>)
+ pub fn destroy(&mut self, curr_gl_ctx: &GlCurrentContextWithFns)
{
self.vertex_arr.delete(curr_gl_ctx);
self.vertex_buffer.delete(curr_gl_ctx);