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

  • SEARCH
  • Home
  • 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 9155617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:37:39+00:00 2026-06-17T12:37:39+00:00

I have Android project using old OpenGL ES 1. I am using this kind

  • 0

I have Android project using old OpenGL ES 1. I am using this kind of nested calls:

...
gl.glPushMatrix();
...
gl.glPushMatrix();
...
gl.glPopMatrix();
...
gl.glPopMatrix();
...

It is working fine in emulator and on my phone but it is not working on my tab and on my brother’s tab (positions of objects are wrong). According to my tests it seems that nested glPushMatrix is not supported, like if stack size is only 1, so the first POP does not return to the previous PUSH state but to the first of the PUSH states. I tried workaround without using nested calls and it works fine, but such solution complicates my next work. Is that known thing? Is the stack size on some devices only 1? I thought it should be at least 32 or something like that. Is it somehow detectable and/or configurable? Can I export the matrix somehow into some array or different structure to make my own stack and load it from it manually? Thanks.

  • 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-06-17T12:37:39+00:00Added an answer on June 17, 2026 at 12:37 pm

    You can read the depth of the stack using:

    glGetIntegerv(GL_MAX_MODELVIEW_STACK_DEPTH, &result);
    

    It should indeed be at least 32.

    That’s assuming you’re actually using the GL_MODELVIEW matrix stack, and you’re not accidentally pushing all your transforms into GL_PROJECTION or something.

    Ideally though you should be computing the matrices yourself, as this functionality is deprecated.

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

Sidebar

Related Questions

I have created a maven android project using this archetype . I want to
I am doing NDK profiling for my project using android-ndk-profiler-3.1. I have made changes
I have setup an android test project that runs junit tests. It's using two
In my project I am using custom android devices and I have to encrypt
I have created a MazeSolver android app for a school project. I am using
I have an Android project in eclipse IDE which was working. After some imports
I have an Android project using Google Calendar v3 API. I'm using Google API
I have an android project with java and native code. Everything works fine, till
Anybody have one example of a android project using a same time C++ and
I have an Android Maven project using maven-eclipse-plugin and android-maven-plugin. Since it grabs 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.