Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadPixmap and BadDrawable errors #587

Open
YerongLi opened this issue Dec 27, 2023 · 0 comments
Open

BadPixmap and BadDrawable errors #587

YerongLi opened this issue Dec 27, 2023 · 0 comments

Comments

@YerongLi
Copy link

YerongLi commented Dec 27, 2023

Platform: bodhi linux + XFCE

GPU, drivers, and screen setup: Nvidia Geforce 650M Mac version

Compton version: compton/jammy,now 1-1 amd64 [installed]

Steps of reproduction

  1. put this file under ~/local/grayscale.glsl
uniform float opacity;
uniform bool invert_color;
uniform sampler2D tex;

void main() {
vec4 c = texture2D(tex, gl_TexCoord[0].xy);
float y = dot(c.rgb, vec3(0.299, 0.587, 0.114));
// y = 1.0 -y;
gl_FragColor = vec4(y, y, y, 1.0);
}

  1. Run this command should grayscale the screen
    compton --backend glx --glx-fshader-win "$(cat $HOME/local/grayscale.glsl)"&

Expected behavior

No warning, no errors. And the screen get gray scaled.

Current Behavior & Other details

$ gray
[1] 796349
yerong@yerong-MacBookPro:~/local$ glx_load_prog_main(): Failed to get location of uniform 'opacity'. Might be troublesome.
glx_load_prog_main(): Failed to get location of uniform 'invert_color'. Might be troublesome.
[     0.22 ] error    4 BadPixmap    request  151 minor   22 serial    677: "BadPixmap (invalid Pixmap parameter)"
[     0.22 ] error    9 BadDrawable  request  155 minor    4 serial    678: "BadDrawable (invalid Pixmap or Window parameter)"
[     0.22 ] error  161 Unknown      request  151 minor   16 serial      0: "GLXBadPixmap"
[     0.29 ] error  161 Unknown      request  151 minor   16 serial      0: "GLXBadPixmap"
[     0.29 ] error  161 Unknown      request  151 minor   23 serial    722: "GLXBadPixmap"
[     0.30 ] error    4 BadPixmap    request  151 minor   22 serial    953: "BadPixmap (invalid Pixmap parameter)"
[     0.30 ] error    9 BadDrawable  request  155 minor    4 serial    954: "BadDrawable (invalid Pixmap or Window parameter)"
[     0.30 ] error  161 Unknown      request  151 minor   16 serial      0: "GLXBadPixmap"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant