Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 172795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:13:44+00:00 2026-05-11T13:13:44+00:00

I have a project that uses GLSL shaders. This project is designed not to

  • 0

I have a project that uses GLSL shaders.

This project is designed not to print anything to stdout unless something is going wrong or you explicitly turn on some extra debug output.

When a shader compile fails the log length given by glGetProgramInfoLog is >0, and sometimes when it succeeds its >0, and gives compile warnings instead. When you have a shader that compiles perfectly the log length is <1… this is how it works on my NVidia card on my dev machine.

For my sins, I also do some dev on a laptop with an intel integrated graphics card. The code runs fine, but whenever I do a shader compile the log contains:

‘shader was successfully compiled to run on hardware’

Which is very annoying, as I now have no way to decide if I should print the string out, apart from some sort of string analysis, eg:

strstr('successfully',log) 

Hopefully its obvious why that’s undesirable. How, if at all, can I tell if a message is worth printing out using the OpenGL api?

EDIT:

If I use glGetShaderiv(shaderobj,GL_COMPILE_STATUS,&err); then I don’t get compile warnings, only errors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:13:45+00:00Added an answer on May 11, 2026 at 1:13 pm

    Here you go:

    glGetShaderiv(shaderobj,GL_COMPILE_STATUS,&err); if(!err) { /* now print out the error log */ } 

    This is the only compile status you get; there isn’t any portable way I’ve found to determine if you’ve got warnings. (The compile log can be full of whatever the implementation cares to put in it, including notification of success.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a native VC++ project that uses a dll (which is not in
I have Midas project that uses a TDataSetProvider in one of RemoteDataModules in the
I have inherited a project that uses LLBLGen Pro for the DB layer. The
I have inherited a project that uses the following pattern for passing parameters from
We have an old project that requires occasional maintenance that uses VS2003 and Dot
I have a .net interop project that uses an app.config file. When I am
I have a .NET 3.5 WinForms project that uses several 3rd party controls and
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I am working on a large project that uses the STL and have a
I have a .net project (MySolution.Common) that uses the app.config. I am using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.