WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152069
[TexMap] Remove the TEXMAP_OPENGL_ES_2 define
https://bugs.webkit.org/show_bug.cgi?id=152069
Summary
[TexMap] Remove the TEXMAP_OPENGL_ES_2 define
Zan Dobersek
Reported
2015-12-09 09:20:28 PST
[TexMap] Remove the TEXMAP_OPENGL_ES_2 define
Attachments
Patch
(7.02 KB, patch)
2015-12-09 09:27 PST
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2015-12-09 09:27:05 PST
Created
attachment 267014
[details]
Patch
Martin Robinson
Comment 2
2015-12-09 09:31:50 PST
Comment on
attachment 267014
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267014&action=review
> Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp:-283 > m_context3D->bindRenderbuffer(GraphicsContext3D::RENDERBUFFER, m_rbo); > -#ifdef TEXMAP_OPENGL_ES_2 > m_context3D->renderbufferStorage(GraphicsContext3D::RENDERBUFFER, GraphicsContext3D::STENCIL_INDEX8, m_textureSize.width(), m_textureSize.height()); > -#else > - m_context3D->renderbufferStorage(GraphicsContext3D::RENDERBUFFER, GraphicsContext3D::DEPTH_STENCIL, m_textureSize.width(), m_textureSize.height()); > -#endif
Hrm. What's going on here? I don't think that OpenGLES supports STENCIL_INDEX8 typically.
Zan Dobersek
Comment 3
2015-12-09 09:38:36 PST
Comment on
attachment 267014
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267014&action=review
>> Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp:-283 >> -#endif > > Hrm. What's going on here? I don't think that OpenGLES supports STENCIL_INDEX8 typically.
ES2 does:
https://www.khronos.org/opengles/sdk/docs/man/xhtml/glRenderbufferStorage.xml
We don't support ES, and it apparently doesn't provide glRenderbufferStorage() as well.
Alex Christensen
Comment 4
2015-12-09 23:45:06 PST
Comment on
attachment 267014
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267014&action=review
r=me
> Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp:48 > +#if OS(DARWIN) > #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
We should probably eventually remove this hack, too. If a value is not defined, it means we probably shouldn't use it. GraphicsContext3DIOS.h has this: #define GL_UNSIGNED_INT_8_8_8_8_REV GL_UNSIGNED_BYTE GraphicsContext3DIOS.h is also a horrible hack, and should not be used as a good example of anything.
Zan Dobersek
Comment 5
2015-12-10 00:28:42 PST
Comment on
attachment 267014
[details]
Patch Clearing flags on attachment: 267014 Committed
r193893
: <
http://trac.webkit.org/changeset/193893
>
Zan Dobersek
Comment 6
2015-12-10 00:28:56 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug