Browse Source

update module and symbol names to match ctru-rs

pull/23/head
Tamara Schmitz 1 year ago
parent
commit
827fc7b983
Signed by untrusted user who does not match committer: tamtaram
GPG Key ID: C2613AC6B3FA4686
  1. 4
      citro3d/src/render.rs

4
citro3d/src/render.rs

@ -6,7 +6,7 @@ use std::cell::RefMut;
use citro3d_sys::{ use citro3d_sys::{
C3D_RenderTarget, C3D_RenderTargetCreate, C3D_RenderTargetDelete, C3D_DEPTHTYPE, C3D_RenderTarget, C3D_RenderTargetCreate, C3D_RenderTargetDelete, C3D_DEPTHTYPE,
}; };
use ctru::gfx::Screen; use ctru::services::gfx::Screen;
use ctru::services::gspgpu::FramebufferFormat; use ctru::services::gspgpu::FramebufferFormat;
use ctru_sys::{GPU_COLORBUF, GPU_DEPTHBUF}; use ctru_sys::{GPU_COLORBUF, GPU_DEPTHBUF};
@ -44,7 +44,7 @@ impl<'screen> Target<'screen> {
screen: RefMut<'screen, dyn Screen>, screen: RefMut<'screen, dyn Screen>,
depth_format: Option<DepthFormat>, depth_format: Option<DepthFormat>,
) -> Result<Self> { ) -> Result<Self> {
let color_format: ColorFormat = screen.get_framebuffer_format().into(); let color_format: ColorFormat = screen.framebuffer_format().into();
let raw = unsafe { let raw = unsafe {
C3D_RenderTargetCreate( C3D_RenderTargetCreate(

Loading…
Cancel
Save