imgui-node-editor icon indicating copy to clipboard operation
imgui-node-editor copied to clipboard

failed to compile fragment shader macOS issue

Open thewoz opened this issue 2 years ago • 2 comments

Hi, I try to compile the example via Xcode and I get this: What I can do? MacOS Ventura 13.1

ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile fragment shader!
ERROR: 0:8: Invalid call of undeclared identifier 'texture2D'
ERROR: 0:9: Use of undeclared identifier 'col'
ERROR: 0:9: Use of undeclared identifier 'col'
ERROR: 0:9: Use of undeclared identifier 'gl_FragColor'
ERROR: 0:9: Use of undeclared identifier 'col'

ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link shader program! (with GLSL '#version 150
')
ERROR: One or more attached shaders not successfully compiled

thewoz avatar Jan 12 '23 11:01 thewoz

Try changing renderer_ogl3.cpp line 99 from: const char* glslVersion = "#version 150";

To: const char* glslVersion = "#version 100";

It works nicely in my 2015 iMac, but have low FPS on Intel Mac Mini.

dawmster avatar Jan 23 '23 17:01 dawmster

FWIW, this worked for me

OS: macOS 13.0 22A380 arm64 Host: MacBookPro18,1 Kernel: 22.1.0

simpsond avatar Mar 11 '23 06:03 simpsond