Citra doesnt work on retro arch

hi!

I have a problem with citra on retroarch. When i run a 3DS game, the game crashes. I tried a lot of games with same result.

[INFO] RetroArch 1.14.0 (Git e3c92b0)
[INFO] === Build =======================================
[INFO] CPU Model Name: AMD Ryzen 5 3600 6-Core Processor              
[INFO] Capacités: MMX MMXEXT SSE SSE2 SSE3 SSE4 SSE4.2 AES AVX AVX2
[INFO] Built: Dec 13 2022
[INFO] Version: 1.14.0
[INFO] Git: e3c92b0
[INFO] =================================================
[INFO] [Input]: Found input driver: "dinput".
[INFO] [Core]: Loading dynamic libretro core from: "cores\citra_libretro.dll"
[INFO] [Environ]: SET_VARIABLES.
[INFO] [Environ]: SET_CONTROLLER_INFO.
[INFO] [Overrides]: Redirection du fichier de sauvegarde vers "D:\Jeux\LaunchBox\Emulators\RetroArch\saves\Dragon Quest VII - Fragments of the Forgotten Past.srm".
[INFO] [Overrides]: Redirection du fichier de sauvegarde instantanée vers "D:\Jeux\LaunchBox\Emulators\RetroArch\states\Dragon Quest VII - Fragments of the Forgotten Past.state".
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Content]: Chargement du contenu ignoré. L'implémentation va le charger elle-même.
[INFO] [Environ]: SET_HW_SHARED_CONTEXT.
[INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888.
[INFO] [Environ]: SET_HW_RENDER, context type: glcore.
[INFO] Requesting core OpenGL context (3.3).
[INFO] Reached end of SET_HW_RENDER.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[INFO] [Environ]: GET_SAVE_DIRECTORY.
[libretro INFO] Frontend @ citra_libretro/citra_libretro.cpp:retro_load_game:579: Starting Citra RetroArch game...
[libretro INFO] Common.Filesystem @ common/file_util.cpp:FileUtil::SetUserPath:713: Using D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/ as the user directory
[libretro INFO] Frontend @ citra_libretro/citra_libretro.cpp:UpdateSettings:444: User dir set to "D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/".
[INFO] [Environ]: SET_GEOMETRY: 400x480, Aspect: 0.833.
[libretro ERROR] Service.FS @ core/file_sys/ncch_container.cpp:FileSys::NCCHContainer::Load:242: Secure1 KeyX missing
[libretro WARN] Service.FS @ core/file_sys/ncch_container.cpp:FileSys::NCCHContainer::Load:343: NCCH is marked as encrypted but with decrypted exheader. Force no crypto scheme.
[libretro INFO] Audio.DSP @ audio_core/hle/wmf_decoder.cpp:AudioCore::HLE::WMFDecoder::Impl::Impl:67: Media Foundation activated
[libretro INFO] Audio.DSP @ audio_core/hle/wmf_decoder_utils.cpp:MFDecoder::MFDecoderInit:50: Windows(R) Media Foundation found 1 suitable decoder(s)
[libretro ERROR] Service.NWM @ core/hle/service/nwm/nwm_uds.cpp:Service::NWM::NWM_UDS::NWM_UDS:1518: Network isn't initalized
[libretro ERROR] Service.HTTP @ core/hle/service/http_c.cpp:Service::HTTP::HTTP_C::DecryptClCertA:806: ClCertA file missing
[libretro ERROR] Core @ core/telemetry_session.cpp:Core::GetTelemetryId:47: failed to open telemetry_id: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/config/telemetry_id
[libretro INFO] Loader @ core/loader/ncch.cpp:Loader::AppLoader_NCCH::Load:192: Program ID: 000400000018F000
[libretro WARN] Service.FS @ core/file_sys/ncch_container.cpp:FileSys::NCCHContainer::OpenFile:130: Failed to open D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004000e/0018f000/content/00000000.app
[libretro INFO] Loader @ core/hle/kernel/process.cpp:Kernel::Process::ParseKernelCaps:141: ExHeader kernel version: 2.33
[libretro INFO] Service.FS @ core/file_sys/ncch_container.cpp:FileSys::NCCHContainer::LoadSectionExeFS:505: Attempting to load logo from the ExeFS
[libretro INFO] Service.CFG @ core/hle/service/cfg/cfg.cpp:Service::CFG::Module::SetPreferredRegionCodes:660: Preferred region code set to 2
[INFO] [SRAM]: Chargement de la SRAM ignoré.
[INFO] [Core]: Version de l'API libretro: 1, Compilé avec l'API: 1
[INFO] [Audio]: Set audio input rate to: 32728.00 Hz.
[INFO] [Video]: Set video size to: fullscreen.
[INFO] [Video]: Using HW render, glcore driver forced.
[INFO] [Video]: "glcore" saved as cached driver.
[INFO] [GLCore]: Found GL context: "wgl".
[INFO] [GLCore]: Detecting screen resolution: 1920x1080.
[INFO] [WGL]: Extensions: WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_create_context_es2_profile WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_make_current_read WGL_ARB_framebuffer_sRGB WGL_ARB_render_texture WGL_ARB_buffer_region WGL_NV_DX_interop WGL_NV_DX_interop2 WGL_NV_swap_group WGL_I3D_genlock WGL_AMD_gpu_association WGL_ARB_context_flush_control WGL_ARB_create_context_no_error WGL_EXT_extensions_string
[INFO] [WGL]: Adaptive VSync supported.
[INFO] [GLCore]: Initializing HW render (8192x8192).
[INFO] [GLCore]: Max texture size: 16384 px, renderbuffer size: 16384 px.
[INFO] [GLCore]: Vendor: ATI Technologies Inc., Renderer: AMD Radeon RX 5700 XT.
[INFO] [GLCore]: Version: 4.6.0 Core Profile Context 22.11.2.221130.
[INFO] [GLCore]: Using resolution 1920x1080.
[INFO] [XInput]: Found XInput v1.4.
[INFO] [Joypad]: Found joypad driver: "dinput".
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (Indisponible)
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Video]: Found display server: "win32".
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/renderer_opengl.cpp:OpenGL::RendererOpenGL::Init:988: GL_VERSION: 4.6.0 Core Profile Context 22.11.2.221130
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/renderer_opengl.cpp:OpenGL::RendererOpenGL::Init:989: GL_VENDOR: ATI Technologies Inc.
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/renderer_opengl.cpp:OpenGL::RendererOpenGL::Init:990: GL_RENDERER: AMD Radeon RX 5700 XT
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/gl_format_reinterpreter.cpp:OpenGL::ShaderD24S8toRGBA8::ShaderD24S8toRGBA8:292: Texture views are unsupported, reinterpretation will do intermediate copy
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/gl_format_reinterpreter.cpp:OpenGL::FormatReinterpreterOpenGL::FormatReinterpreterOpenGL:378: Using shader for D24S8 to RGBA8 reinterpretation
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/gl_shader_disk_cache.cpp:OpenGL::ShaderDiskCache::LoadTransferable:169: Found a transferable disk cache with 1 entries
[libretro INFO] Render.OpenGL @ video_core/renderer_opengl/gl_shader_disk_cache.cpp:OpenGL::ShaderDiskCache::LoadPrecompiledFile:268: Found a precompiled disk cache with 1 decompiled entries and 1 binary entries
[INFO] [Environ]: SET_GEOMETRY: 400x480, Aspect: 0.833.
[INFO] [XAudio2]: Requesting 64 ms latency, using 64 ms latency.
[INFO] [Display]: Found display driver: "glcore".
[INFO] [Playlist]: Chargement du fichier d'historique: "D:\Jeux\LaunchBox\Emulators\RetroArch\content_history.lpl".
[INFO] [Playlist]: Chargement du fichier d'historique: "D:\Jeux\LaunchBox\Emulators\RetroArch\content_music_history.lpl".
[INFO] [Playlist]: Chargement du fichier d'historique: "D:\Jeux\LaunchBox\Emulators\RetroArch\content_video_history.lpl".
[INFO] [Playlist]: Chargement du fichier d'historique: "D:\Jeux\LaunchBox\Emulators\RetroArch\content_image_history.lpl".
[INFO] [Playlist]: Chargement du fichier des favoris: "D:\Jeux\LaunchBox\Emulators\RetroArch\content_favorites.lpl".
[libretro WARN] Service.SRV @ core/hle/service/sm/srv.cpp:Service::SM::SRV::RegisterClient:63: (STUBBED) called. Caller PID=11
[libretro WARN] Service.SRV @ core/hle/service/sm/srv.cpp:Service::SM::SRV::EnableNotification:85: (STUBBED) called
[libretro WARN] Service.APT @ core/hle/service/apt/apt.cpp:Service::APT::Module::APTInterface::GetLockHandle:317: (STUBBED) called applet_attributes=0X00000000
[libretro WARN] Service.NDM @ core/hle/service/ndm/ndm_u.cpp:Service::NDM::NDM_U::OverrideDefaultDaemons:186: (STUBBED) bit_mask=0x0000000F
[libretro WARN] Service.NDM @ core/hle/service/ndm/ndm_u.cpp:Service::NDM::NDM_U::SuspendDaemons:74: (STUBBED) bit_mask=0x00000006
[libretro WARN] Service.APT @ core/hle/service/apt/apt.cpp:Service::APT::Module::APTInterface::NotifyToWait:296: (STUBBED) app_id=768
[libretro WARN] Service.APT @ core/hle/service/apt/apt.cpp:Service::APT::Module::APTInterface::AppletUtility:592: (STUBBED) called command=0X00000007, input_size=0X00000004, output_size=0X00000001
[libretro WARN] Service.APT @ core/hle/service/apt/apt.cpp:Service::APT::Module::APTInterface::AppletUtility:592: (STUBBED) called command=0X00000004, input_size=0X00000001, output_size=0X00000001
[libretro WARN] Service.APT @ core/hle/service/apt/apt.cpp:Service::APT::Module::APTInterface::SetAppCpuTimeLimit:607: (STUBBED) called, cpu_percent=20, value=1
[libretro WARN] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::InitializeWithSdkVersion:600: (STUBBED) called, version: 0x040203C8
[libretro ERROR] Service.FS @ core/file_sys/archive_backend.h:FileSys::ArchiveBackend::GetOpenDelayNs:193: Delay generator was not initalized. Using default
[libretro ERROR] Service.FS @ core/file_sys/archive_backend.h:FileSys::ArchiveBackend::GetOpenDelayNs:193: Delay generator was not initalized. Using default
[libretro INFO] Service.DSP @ audio_core/hle/hle.cpp:AudioCore::DspHle::LoadComponent:497: Firmware hash: 0xe031661c89e654ee
[libretro INFO] Service.DSP @ audio_core/hle/hle.cpp:AudioCore::DspHle::LoadComponent:501: Structures hash: 0x228655de1258d999
[libretro INFO] Service.DSP @ core/hle/service/dsp/dsp_dsp.cpp:Service::DSP::DSP_DSP::LoadComponent:189: called size=0xC234, prog_mask=0x000000FF, data_mask=0x000600FF
[libretro INFO] Service.DSP @ core/hle/service/dsp/dsp_dsp.cpp:Service::DSP::DSP_DSP::RegisterInterruptEvents:255: Registered interrupt=2, channel=2, event=event-001423c4
[libretro WARN] Service.DSP @ core/hle/service/dsp/dsp_dsp.cpp:Service::DSP::DSP_DSP::GetSemaphoreEventHandle:271: (STUBBED) called
[libretro WARN] Service.DSP @ core/hle/service/dsp/dsp_dsp.cpp:Service::DSP::DSP_DSP::SetSemaphoreMask:281: (STUBBED) called mask=0x2000
[libretro INFO] Audio.DSP @ audio_core/hle/hle.cpp:AudioCore::DspHle::Impl::PipeWrite:257: Application has requested initialization of DSP hardware
[libretro INFO] Service.DSP @ core/hle/service/dsp/dsp_dsp.cpp:Service::DSP::DSP_DSP::SetSemaphore:57: called, semaphore_value=4000
[libretro INFO] Service.DSP @ core/hle/service/dsp/dsp_dsp.cpp:Service::DSP::DSP_DSP::SetSemaphore:57: called, semaphore_value=4000
[libretro ERROR] Service.FS @ core/file_sys/archive_sdmc.cpp:FileSys::SDMCArchive::CreateDirectory:294: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/DEBUG already exists
[libretro ERROR] Service.FS @ core/file_sys/archive_sdmc.cpp:FileSys::SDMCArchive::CreateDirectory:294: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/DEBUG/ASSERT already exists
[libretro ERROR] Service.FS @ core/file_sys/archive_sdmc.cpp:FileSys::SDMCArchive::CreateDirectory:294: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/DEBUG/CAPTURE already exists
[libretro ERROR] Service.FS @ core/file_sys/archive_sdmc.cpp:FileSys::SDMCArchive::CreateDirectory:294: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/DEBUG/SAVE already exists
[libretro ERROR] Service.FS @ core/file_sys/archive_sdmc.cpp:FileSys::SDMCArchive::CreateDirectory:294: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/DEBUG/KEYRECORD already exists
[libretro ERROR] Service.FS @ core/file_sys/archive_sdmc.cpp:FileSys::SDMCArchive::CreateDirectory:294: D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/DEBUG/LOG already exists
[libretro WARN] Service.CECD @ core/hle/service/cecd/cecd.cpp:Service::CECD::Module::Interface::GetCecdState:701: (STUBBED) called
[libretro WARN] Service.CECD @ core/hle/service/cecd/cecd.cpp:Service::CECD::Module::Interface::GetCecInfoEventHandle:711: (STUBBED) called
[libretro WARN] Service.NDM @ core/hle/service/ndm/ndm_u.cpp:Service::NDM::NDM_U::SuspendDaemons:74: (STUBBED) bit_mask=0x00000001
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:69: Path not found D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/nand/data/00000000000000000000000000000000/sysdata/00010026/00000000/CEC/0018f000/MBoxInfo____
[libretro WARN] Service.NDM @ core/hle/service/ndm/ndm_u.cpp:Service::NDM::NDM_U::ResumeDaemons:89: (STUBBED) bit_mask=0x00000001
[libretro WARN] Service.APT @ core/hle/service/apt/apt.cpp:Service::APT::Module::APTInterface::AppletUtility:592: (STUBBED) called command=0X00000004, input_size=0X00000001, output_size=0X00000001
[libretro WARN] Service.GSP @ core/hle/service/gsp/gsp_gpu.cpp:Service::GSP::GSP_GPU::AcquireRight:706: called flag=00000000 process=11 thread_id=0
[libretro ERROR] Render.OpenGL @ video_core/renderer_opengl/gl_rasterizer_cache.cpp:OpenGL::MortonCopy:188: Out of bound texture
[libretro WARN] Service.FS @ core/file_sys/archive_ncch.cpp:FileSys::NCCHArchive::OpenFile:150: Shared Font file missing. Loading open source replacement from memory
[libretro ERROR] Service.FS @ core/file_sys/archive_backend.h:FileSys::ArchiveBackend::GetOpenDelayNs:193: Delay generator was not initalized. Using default
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/system.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /system.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save001.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save001.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save002.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save002.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save003.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save003.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save000.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save000.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/system.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /system.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save000.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save000.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save001.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save001.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save002.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save002.bin]
[libretro ERROR] Service.FS @ core/file_sys/savedata_archive.cpp:FileSys::SaveDataArchive::OpenFile:78: Non-existing file D:\Jeux\LaunchBox\Emulators\RetroArch\saves/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/00040000/0018f000/data/00000001/save003.bin can't be open without mode create.
[libretro ERROR] Service.FS @ core/hle/service/fs/fs_user.cpp:Service::FS::FS_USER::OpenFile:77: failed to get a handle for file [Wchar: /save003.bin]
[libretro ERROR] Render.OpenGL @ video_core/renderer_opengl/gl_shader_util.cpp:OpenGL::LoadShader:64: Error compiling fragment shader:
WARNING: 0:29: 'defined' : nonportable when expanded from macros for preprocessor expression 
WARNING: 0:29: 'defined' : nonportable when expanded from macros for preprocessor expression 
WARNING: 0:133: 'defined' : nonportable when expanded from macros for preprocessor expression 
WARNING: 0:133: 'defined' : nonportable when expanded from macros for preprocessor expression 
ERROR: 0:149: 'imageSize' : no matching overloaded function found 
ERROR: 0:149: '' : missing #endif 
ERROR: 0:149: '' : compilation terminated 
ERROR: 3 compilation errors.  No code generated.


[libretro ERROR] Render.OpenGL @ video_core/renderer_opengl/gl_shader_util.cpp:OpenGL::LoadShader:65: Shader source code:
#version 330

#extension GL_ARB_shader_image_load_store : enable
#extension GL_ARB_shader_image_size : enable
#define ALLOW_SHADOW (defined(GL_ARB_shader_image_load_store) && defined(GL_ARB_shader_image_size))
#extension GL_ARB_separate_shader_objects : enable
layout (location=1) in vec4 primary_color;
layout (location=2) in vec2 texcoord0;
layout (location=3) in vec2 texcoord1;
layout (location=4) in vec2 texcoord2;
layout (location=5) in float texcoord0_w;
layout (location=6) in vec4 normquat;
layout (location=7) in vec3 view;

#ifndef CITRA_GLES
in vec4 gl_FragCoord;
#endif // CITRA_GLES

out vec4 color;

uniform sampler2D tex0;
uniform sampler2D tex1;
uniform sampler2D tex2;
uniform samplerCube tex_cube;
uniform samplerBuffer texture_buffer_lut_lf;
uniform samplerBuffer texture_buffer_lut_rg;
uniform samplerBuffer texture_buffer_lut_rgba;

#if ALLOW_SHADOW
layout(r32ui) uniform readonly uimage2D shadow_texture_px;
layout(r32ui) uniform readonly uimage2D shadow_texture_nx;
layout(r32ui) uniform readonly uimage2D shadow_texture_py;
layout(r32ui) uniform readonly uimage2D shadow_texture_ny;
layout(r32ui) uniform readonly uimage2D shadow_texture_pz;
layout(r32ui) uniform readonly uimage2D shadow_texture_nz;
layout(r32ui) uniform uimage2D shadow_buffer;
#endif

#define NUM_TEV_STAGES 6
#define NUM_LIGHTS 8
#define NUM_LIGHTING_SAMPLERS 24

struct LightSrc {
    vec3 specular_0;
    vec3 specular_1;
    vec3 diffuse;
    vec3 ambient;
    vec3 position;
    vec3 spot_direction;
    float dist_atten_bias;
    float dist_atten_scale;
};

layout (std140) uniform shader_data {
    int framebuffer_scale;
    int alphatest_ref;
    float depth_scale;
    float depth_offset;
    float shadow_bias_constant;
    float shadow_bias_linear;
    int scissor_x1;
    int scissor_y1;
    int scissor_x2;
    int scissor_y2;
    int fog_lut_offset;
    int proctex_noise_lut_offset;
    int proctex_color_map_offset;
    int proct[libretro ERROR] Render.OpenGL @ video_core/renderer_opengl/gl_shader_util.cpp:OpenGL::LoadProgram:101: Error linking shader:
Program Link Failed for unknown reason.

[libretro ERROR] Debug @ video_core/renderer_opengl/gl_shader_util.cpp:OpenGL::LoadProgram::<lambda_1>::operator ():105: Assertion Failed!
Shader not linked

Hmm, looks like a bunch of shader errors. I think it saves a shader cache somewhere. (maybe in your ‘saves’ directory?) that you can probably try to delete and see if it treats you any better.

1 Like

had a bunch of trouble with citra 2 months ago …

to get it working i had to do this (and cuz you using an AMD GPU this maybe helps)

  1. for me an friend and i read it from many people citra will crash each time with every Radeon/Adrenalin version above 22.6.1
    cuz amd changed something to improve open-gl performance that breaks the citra-core
    the citra core has to be updatet and include a fix for it so far i read

    so downgrade to 22.6.1 or standlaone are the only way around this …also

  2. even with this Citra crashes each time for me if i load it up with a shader preset at start you have to disable shaders if used. let citra boot the game than load a shader preset

    Hope that helps

3 Likes

Thank you guys for your help.

you can probably try to delete and see if it treats you any better.

I deleted it but it doesn’t solve the problem.

you have to disable shaders if used.

No shaders were enable at start.

so downgrade to 22.6.1

It works! It seems that citra core need an update. I think that will cause problem with other updated emulators. In that case, i’ll use the standalone.

Once again thank you!

1 Like

glad that this worked ,all other cores are working fine , it is for sure just the citra core that broke :slightly_smiling_face:

Thank you - SO MUCH - for making this post.

I was about 2 seconds from throwing my entire computer through the window, just fuming blood-curdling angry, after spending HOURS trying to figure out WHAT on earth I must have broken in my setup to cause 3DS to stop working.

Like… omg dude I can’t even convey it…

So thank you. THIS finally solved it.

I wish there was a better way to know about these things than searching for posts though.

1 Like

no problem . i am glad that it helps :relaxed:

Thank you so much for this! Downgrading my AMD Driver fixed citra.

2 Likes

can i get some help? i wanna play pokemon x and or y but im having troubles like a mf’er, i get one file and its like decrpt it then says it wont load, or its just not loading wtf am i doin wrong? idek if i have thwe right roms where is a good rom for pokemon?

First of all, please don’t ask where to get Roms. It’s not allowed here.

Assuming you have a good working Rom, then you also need Decryption Keys https://docs.libretro.com/library/citra/#decryption-keys to play encrypted games. There are also Roms that are already decrypted, then this file won’t matter. Problem is, the documentation I gave you points to the non existent Citra project. And I doubt it would be okay to post anything to it here.

In short, either you have a Rom that is already decrypted, or you need the decryption keys file too. aes_keys.txt needs to be placed in “/saves/Citra/sysdata”.