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 7036237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:24:00+00:00 2026-05-28T01:24:00+00:00

How do i temporarily disable textures on opengl es 2.x for ios in the

  • 0

How do i temporarily disable textures on opengl es 2.x for ios in the render function?
I am implementing color selection.

I am not using glkit. I am using shaders, so glDisable(GL_TEXTURE_2D) doesn’t work, nor did glBindTexture(GL_TEXTURE_2D,0)

  • 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. Editorial Team
    Editorial Team
    2026-05-28T01:24:01+00:00Added an answer on May 28, 2026 at 1:24 am

    Depends on what you want to achieve. If you disable a texture what do you expect to have in your rendering?

    If your shader calculates the color of a fragment based on a Texture sample, if you do not bind any texture, what should it use in place of the texture? A color?

    I see 2 options:

    A – use 2 shaders, one supporting textures, one using fixed colors (or vertex colors if you load the attribute)

    B – use a single shader and pilot the rendering (texture or colors) using uniforms.

    The option B offers much more performance.

    Edit to first question on how to do it:

    if (Texture == 0) {
        gl_FragColor = vec4(1.0,0.0,0.0,0.0);  //red color
    } else{
        gl_FragColor = texture2D(Texture, TexCoordOut);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using MS-SQL-08: Is it possible to somehow temporarily disable dependency checking, so that I
How can I temporarily disable listview selection rectangle, so when someone clicks the listview
I try to temporarily disable a function by removing the selector that is used
Is there any addon by which I can disable all catch blocks temporarily. I'm
I'm searching for a (simple ?) way to temporary disable my MooEditable block. Using
I would like to temporarily override the kill-new function. I have a way I
I have a navigation controller-based app in which I would like to temporarily disable
I've seen questions answering this with Visual Studio vs-2008-addon-to-temporarily-disable-remove-all-catch-block how-to-temporarily-deactivate-all-try-catch-blocks but can't find anything
At a certain point in my application, I would like to temporarily disable the
Say that I temporarily want to disable the OnCalcFields event (eg. by setting cdsCalcFields

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.