Message from discussion
non-power of two textures
Received: by 10.224.180.205 with SMTP id bv13mr14317916qab.8.1343910550608;
Thu, 02 Aug 2012 05:29:10 -0700 (PDT)
Path: a15ni4867845qag.0!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border6.newsrouter.astraweb.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.matabio.net!jeffrey.matabio.net!thue.elzevir.fr!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From: bob smith <b...@coolfone.comze.com>
Newsgroups: comp.graphics.api.opengl
Subject: Re: non-power of two textures
Date: Tue, 31 Jul 2012 07:02:30 -0700 (PDT)
Organization: http://groups.google.com
Lines: 72
Message-ID: <c242f83c-8fe0-4941-9586-5dfae4e305b4@googlegroups.com>
References: <77498dbf-cda5-468d-884d-b7dd72b15915@googlegroups.com>
<pan.2012.07.30.10.42.00.607000@nowhere.com>
<6f58f783-7ca6-43ca-a50f-b4c9c6a0b54e@googlegroups.com>
<pan.2012.07.31.13.43.28.836000@nowhere.com>
NNTP-Posting-Host: 184.76.139.203
Mime-Version: 1.0
X-Trace: posting.google.com 1343743351 9741 127.0.0.1 (31 Jul 2012 14:02:31
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 31 Jul 2012 14:02:31 +0000 (UTC)
In-Reply-To: <pan.2012.07.31.13.43.28.836000@nowhere.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.76.139.203;
posting-account=v1lx5wkAAAALWYfGBkwkMb2guPF9cW2u
User-Agent: G2/1.0
Bytes: 2972
X-Received-Bytes: 3058
Content-Type: text/plain; charset=ISO-8859-1
On Tuesday, July 31, 2012 8:43:16 AM UTC-5, Nobody wrote:
> On Mon, 30 Jul 2012 12:57:28 -0700, bob smith wrote:
>
>
>
> >> if (strstr(glGetString(GL_EXTENSIONS),
>
> >> "GL_ARB_texture_non_power_of_two"))
>
> >> ...
>
> >
>
> > For some reason, it doesn't like this:
>
> >
>
> > glGetString(GL_EXTENSIONS);
>
> >
>
> > It returns 0.
>
>
>
> Have you created and bound a context at the point that you call it?
>
>
>
> Also, in 3.x and later "core profile", glGetString(GL_EXTENSIONS) is no
>
> longer valid (it will fail with GL_INVALID_ENUM). Instead, you need to
>
> use glGetStringi(), e.g.:
>
>
>
> GLint count;
>
> GLuint i;
>
> glGetIntegerv(GL_NUM_EXTENSIONS, &count);
>
> for (i = 0; i < count; i++)
>
> if (strcmp(glGetStringi(GL_EXTENSIONS, i),
>
> "GL_ARB_texture_non_power_of_two") == 0)
>
> ...
Yes, glGetString(GL_EXTENSIONS) did fail with GL_INVALID_ENUM.
Here's a list of the extensions on my Macbook Pro:
GL_ARB_instanced_arrays...
GL_ARB_occlusion_query2...
GL_ARB_shader_bit_encoding...
GL_ARB_timer_query...
GL_EXT_texture_compression_s3tc...
GL_EXT_texture_filter_anisotropic...
GL_EXT_texture_sRGB_decode...
GL_APPLE_client_storage...
GL_APPLE_container_object_shareable...
GL_APPLE_object_purgeable...
GL_APPLE_rgb_422...
GL_APPLE_row_bytes...
GL_APPLE_texture_range...
I guess my textures have to be power of two?
Seems weird cause I just bought this thing.