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

sokol: fix usage of sokol sampler #19527

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

larpon
Copy link
Contributor

@larpon larpon commented Oct 7, 2023

No description provided.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work. Thank you. I could not figure out how to fix the shader compilation error for over 2 days.

@medvednikov
Copy link
Member

Thanks! I'll update ui right now.

@JalonSolov
Copy link
Contributor

JalonSolov commented Oct 7, 2023

Hmm...

src/extra_draw.v:374:7: error: expected 2 arguments, but got 1
  372 |         sgl.load_pipeline(ctx.pipeline.alpha)
  373 |         sgl.enable_texture()
  374 |         sgl.texture(simg)
      |             ~~~~~~~~~~~~~
  375 |         sgl.begin_quads()
  376 |         sgl.c4b(255, 255, 255, 255)

@medvednikov medvednikov merged commit 3c68e78 into vlang:master Oct 7, 2023
27 of 30 checks passed
@larpon
Copy link
Contributor Author

larpon commented Oct 7, 2023

Hmm...

src/extra_draw.v:374:7: error: expected 2 arguments, but got 1
  372 |         sgl.load_pipeline(ctx.pipeline.alpha)
  373 |         sgl.enable_texture()
  374 |         sgl.texture(simg)
      |             ~~~~~~~~~~~~~
  375 |         sgl.begin_quads()
  376 |         sgl.c4b(255, 255, 255, 255)

Ouch I might have overlooked that 😳

@larpon larpon deleted the gfx/fix-sokol-sampler-change branch October 7, 2023 20:40
@medvednikov
Copy link
Member

Already fixed.

Wertzui123 pushed a commit to Wertzui123/v that referenced this pull request Oct 8, 2023
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

Successfully merging this pull request may close these issues.

4 participants