Git Product home page Git Product logo

Comments (2)

matthewearl avatar matthewearl commented on June 20, 2024

Edit: ignore the below, the shader wasn't compiling due to layout(binding=0) not being compatible with the specified opengl version, so it switched to the non-GLSL render path.


Hello, this is affecting my graphics card which is the same model as in the issue title. The following diff appears to fix it:

diff --git a/trunk/gl_rmain.c b/trunk/gl_rmain.c
index a3c74f4..f458a12 100644
--- a/trunk/gl_rmain.c
+++ b/trunk/gl_rmain.c
@@ -729,7 +729,7 @@ void GLAlias_CreateShaders(void)
                "       int AnormPitch[NUMVERTEXNORMALS];\n"
                "       int AnormYaw[NUMVERTEXNORMALS];\n"
                "};\n"
-               "uniform usamplerBuffer VlightTable;\n"
+               "layout(binding=0) uniform usamplerBuffer VlightTable;\n"
                "attribute vec4 TexCoords; // only xy are used \n"
                "attribute vec4 Pose1Vert;\n"
                "attribute vec3 Pose1Normal;\n"

I have no idea if this is the right fix or not. Note I'm running on Linux with this branch: https://github.com/matthewearl/joequake-1/tree/sdl-linux

from joequake.

Flecked42 avatar Flecked42 commented on June 20, 2024

I put in that change and GLSL is enabled for me, no errors.

I have an AMD GPU though.

from joequake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.