Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3bd0eb3e
Commit
3bd0eb3e
authored
Aug 20, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use GL_RGB565 if available.
This offers better precision on r300g and r600g than GL_RGB5.
parent
6626b1a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
directx.c
dlls/wined3d/directx.c
+7
-0
utils.c
dlls/wined3d/utils.c
+5
-0
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+1
-0
No files found.
dlls/wined3d/directx.c
View file @
3bd0eb3e
...
...
@@ -116,6 +116,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
{
"GL_ARB_draw_buffers"
,
ARB_DRAW_BUFFERS
},
{
"GL_ARB_draw_elements_base_vertex"
,
ARB_DRAW_ELEMENTS_BASE_VERTEX
},
{
"GL_ARB_draw_instanced"
,
ARB_DRAW_INSTANCED
},
{
"GL_ARB_ES2_compatibility"
,
ARB_ES2_COMPATIBILITY
},
{
"GL_ARB_fragment_program"
,
ARB_FRAGMENT_PROGRAM
},
{
"GL_ARB_fragment_shader"
,
ARB_FRAGMENT_SHADER
},
{
"GL_ARB_framebuffer_object"
,
ARB_FRAMEBUFFER_OBJECT
},
...
...
@@ -2483,6 +2484,12 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
/* GL_ARB_draw_instanced */
USE_GL_FUNC
(
glDrawArraysInstancedARB
)
USE_GL_FUNC
(
glDrawElementsInstancedARB
)
/* GL_ARB_ES2_compatibility */
USE_GL_FUNC
(
glReleaseShaderCompiler
)
USE_GL_FUNC
(
glShaderBinary
)
USE_GL_FUNC
(
glGetShaderPrecisionFormat
)
USE_GL_FUNC
(
glDepthRangef
)
USE_GL_FUNC
(
glClearDepthf
)
/* GL_ARB_framebuffer_object */
USE_GL_FUNC
(
glBindFramebuffer
)
USE_GL_FUNC
(
glBindRenderbuffer
)
...
...
dlls/wined3d/utils.c
View file @
3bd0eb3e
...
...
@@ -1019,6 +1019,11 @@ static const struct wined3d_format_texture_info format_texture_info[] =
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
|
WINED3DFMT_FLAG_RENDERTARGET
,
WINED3D_GL_EXT_NONE
,
NULL
},
{
WINED3DFMT_B5G6R5_UNORM
,
GL_RGB565
,
GL_RGB565
,
GL_RGB8
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
|
WINED3DFMT_FLAG_RENDERTARGET
,
ARB_ES2_COMPATIBILITY
,
NULL
},
{
WINED3DFMT_B5G5R5X1_UNORM
,
GL_RGB5
,
GL_RGB5_A1
,
0
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
,
...
...
dlls/wined3d/wined3d_gl.h
View file @
3bd0eb3e
...
...
@@ -52,6 +52,7 @@ enum wined3d_gl_extension
ARB_DRAW_BUFFERS
,
ARB_DRAW_ELEMENTS_BASE_VERTEX
,
ARB_DRAW_INSTANCED
,
ARB_ES2_COMPATIBILITY
,
ARB_FRAGMENT_PROGRAM
,
ARB_FRAGMENT_SHADER
,
ARB_FRAMEBUFFER_OBJECT
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment