Canvas Renderer

Canvas Renderer

202k Downloads

Canvas not releasing shader files after read

Draylar opened this issue ยท 0 comments

commented

Versions:

  • Canvas 0.7.354
  • Frex 1.0
  • Minecraft 1.14.4 with API 0.4.1+245

Issue:
You can't reload shaders in IntelliJ because Canvas doesn't "let go" of the shader files after reading them. The issue seems to be an InputStream that isn't closed.
Error: Internal error: (java.io.FileNotFoundException) C:\Users\Draylar\Fabric Projects\shaders\build\classes\java\main\assets\canvas\shaders\default.frag (Access is denied)

Steps to Reproduce:

  1. create a simple shader override at resources/assets/canvas/shaders/default.frag
  2. load into the game in debugging mode
  3. change the fragment shader
  4. click build -> rebuild project near the top right of IntelliJ
    [error occurs here, which means you can't f3+t/f3+a to reload]