forked from enlightenment/efl
fix texture size alloc for native textures.
SVN revision: 45483
This commit is contained in:
parent
3069f426b1
commit
31b9220a3e
|
@ -312,7 +312,7 @@ _pool_tex_native_new(Evas_GL_Context *gc, int w, int h, int intformat, int forma
|
||||||
pt = calloc(1, sizeof(Evas_GL_Texture_Pool));
|
pt = calloc(1, sizeof(Evas_GL_Texture_Pool));
|
||||||
if (!pt) return NULL;
|
if (!pt) return NULL;
|
||||||
h = _tex_round_slot(gc, h) << 4;
|
h = _tex_round_slot(gc, h) << 4;
|
||||||
_tex_adjust(gc, &w, &h);
|
// _tex_adjust(gc, &w, &h);
|
||||||
pt->gc = gc;
|
pt->gc = gc;
|
||||||
pt->w = w;
|
pt->w = w;
|
||||||
pt->h = h;
|
pt->h = h;
|
||||||
|
@ -325,8 +325,8 @@ _pool_tex_native_new(Evas_GL_Context *gc, int w, int h, int intformat, int forma
|
||||||
|
|
||||||
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
|
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
|
||||||
// is this really needed for gl-es?
|
// is this really needed for gl-es?
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, intformat, w, h, 0, format,
|
// glTexImage2D(GL_TEXTURE_2D, 0, intformat, w, h, 0, format,
|
||||||
GL_UNSIGNED_BYTE, 0);
|
// GL_UNSIGNED_BYTE, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||||
|
|
Loading…
Reference in New Issue