#42 Error/Typo in glTexImage2D documentation

doc (10)

In the documentation for glTexImage2D located at
the documenation specifies that the width and height of
the image must be
2 n + 2 (border),
where n is an integer. I attempted to call the function
with a bitmap matching that criterion and it raised an
exception with
"[Errno 1281] invalid value".

I found another OpenGL document somewhere on the web
which stated that the image dimensions must each be
2^n + 2 (border),
where n is an integer. That eliminated the problem.

I'm not sure if it's a typo or a formatting problem in
the html.



  • Mike C. Fletcher

    • status: open --> closed-postponed
  • Mike C. Fletcher

    Logged In: YES

    Hmm, not sure how to go about fixing this. Basically, the
    Math-ML is set up to show as (the equivalent of)
    2<super>n</super>, but your browser isn't rendering it as
    such. I can't actually reproduce the problem on my machine
    because both IE and Mozilla render it as 2 with n as a
    superscript. Given that is auto-generated from the standard
    OpenGL docs, it's not really something I feel like going
    through to fix manually.

    Suggestions welcome. (Would it be possible to include a
    MathML stylesheet that takes over if MathML support isn't


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks