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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:03:54+00:00 2026-05-28T16:03:54+00:00

So, in the middle of my code I invoke: gl.drawArrays(381,3,0); gl.getError(); And the getError()

  • 0

So, in the middle of my code I invoke:

gl.drawArrays(381,3,0);
gl.getError();

And the getError() call returns 0.
What may cause this weird behavior?

Edit: I am using chromium

  • 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-28T16:03:55+00:00Added an answer on May 28, 2026 at 4:03 pm

    Because it’s not an error. You are telling it to draw 0 elements starting at vertex 3 (your geometry type, 381, may or may not be valid but I doubt it’s checking that just yet.)

    I would imagine that internally it looks at your request to draw 0 elements and says… “Okay, done! I drew nothing, just like you asked!” and then moves on. Seems like a logical place to early terminate.

    Try calling something really weird like this, see if it gives you an error then:

    gl.drawArrays(-1,-1,2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the middle in studying some code and I encountered this word "Append"
I'm using the following code to split up surname from first + middle names
I have this code: <div style=background-image: url('images/middle.png'); height: 390px; width: 900px; margin-top:190px; color:#000000;> </div>
I am using T4 to generate some screens and middle-tier code for a project,
Here my code: $(document).ready(function() { $('#mid_select').live('click', function(e){ $('#middle').load( $(this).attr('href') + ' #middle'); var page
Middle-tier component will execute the data access routines in application. The component will call
What purpose does using serve when used the following way:- ONE EXAMPLE IS THIS,
I am writing a prolog code and in the middle I want to add
I am using BlazeDS java client to get info from this page . This
I'm in the middle of refactoring some code on my current project, and I'd

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.