Skip to content

Commit

Permalink
update shader_minifier.exe to version 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
helgrima authored and armak committed Nov 22, 2022
1 parent 1155510 commit f76f10e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ Fork your own and submit a pull request, ideas always welcome. Please don't add
* Fizzer for help with implementing some of said hacks.
* iq for the original 4k intro framework.
* Mentor and Blueberry for Crinkler.
* LLB for Shader Minifier. This fork is used in the framework: https://github.com/armak/Shader_Minifier.
* LLB for Shader Minifier.
* Numerous people for various resources and information: auld, ps, cce, msqrt, ferris, yzi, las to name a few.
Binary file modified shader_minifier.exe
Binary file not shown.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
#endif

#include "glext.h"
#pragma data_seg(".shader")
#include "shaders/fragment.inl"
#if POST_PASS
#pragma data_seg(".shader")
#include "shaders/post.inl"
#endif

Expand Down Expand Up @@ -64,9 +66,9 @@ int __cdecl main(int argc, char* argv[])
wglMakeCurrent(hDC, wglCreateContext(hDC));

// create and compile shader programs
pidMain = ((PFNGLCREATESHADERPROGRAMVPROC)wglGetProcAddress("glCreateShaderProgramv"))(GL_FRAGMENT_SHADER, 1, &fragment);
pidMain = ((PFNGLCREATESHADERPROGRAMVPROC)wglGetProcAddress("glCreateShaderProgramv"))(GL_FRAGMENT_SHADER, 1, &fragment_frag);
#if POST_PASS
pidPost = ((PFNGLCREATESHADERPROGRAMVPROC)wglGetProcAddress("glCreateShaderProgramv"))(GL_FRAGMENT_SHADER, 1, &post);
pidPost = ((PFNGLCREATESHADERPROGRAMVPROC)wglGetProcAddress("glCreateShaderProgramv"))(GL_FRAGMENT_SHADER, 1, &post_frag);
#endif

// initialize sound
Expand Down

0 comments on commit f76f10e

Please sign in to comment.