Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
62694157
Commit
62694157
authored
Feb 13, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add GL_APPLE_float_pixels.
parent
825506d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
directx.c
dlls/wined3d/directx.c
+20
-0
wined3d_gl.h
include/wine/wined3d_gl.h
+20
-0
No files found.
dlls/wined3d/directx.c
View file @
62694157
...
...
@@ -47,6 +47,7 @@ static const struct {
{
"GL_APPLE_fence"
,
APPLE_FENCE
,
0
},
{
"GL_APPLE_flush_render"
,
APPLE_FLUSH_RENDER
,
0
},
{
"GL_APPLE_ycbcr_422"
,
APPLE_YCBCR_422
,
0
},
{
"GL_APPLE_float_pixels"
,
APPLE_FLOAT_PIXELS
,
0
},
/* ATI */
{
"GL_ATI_separate_stencil"
,
ATI_SEPARATE_STENCIL
,
0
},
...
...
@@ -784,6 +785,25 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
*/
gl_info
->
supported
[
NV_FENCE
]
=
FALSE
;
}
if
(
gl_info
->
supported
[
APPLE_FLOAT_PIXELS
])
{
/* GL_APPLE_float_pixels == GL_ARB_texture_float + GL_ARB_half_float_pixel
*
* The enums are the same:
* GL_RGBA16F_ARB = GL_RGBA_FLOAT16_APPLE = 0x881A
* GL_RGB16F_ARB = GL_RGB_FLOAT16_APPLE = 0x881B
* GL_RGBA32F_ARB = GL_RGBA_FLOAT32_APPLE = 0x8814
* GL_RGB32F_ARB = GL_RGB_FLOAT32_APPLE = 0x8815
* GL_HALF_FLOAT_ARB = GL_HALF_APPLE = 0x140B
*/
if
(
!
gl_info
->
supported
[
ARB_TEXTURE_FLOAT
])
{
TRACE_
(
d3d_caps
)(
" IMPLIED: GL_ARB_texture_float support(from GL_APPLE_float_pixels
\n
"
);
gl_info
->
supported
[
ARB_TEXTURE_FLOAT
]
=
TRUE
;
}
if
(
!
gl_info
->
supported
[
ARB_HALF_FLOAT_PIXEL
])
{
TRACE_
(
d3d_caps
)(
" IMPLIED: GL_ARB_half_float_pixel support(from GL_APPLE_float_pixels
\n
"
);
gl_info
->
supported
[
ARB_HALF_FLOAT_PIXEL
]
=
TRUE
;
}
}
if
(
gl_info
->
supported
[
ARB_TEXTURE_CUBE_MAP
])
{
TRACE_
(
d3d_caps
)(
" IMPLIED: NVIDIA (NV) Texture Gen Reflection support
\n
"
);
gl_info
->
supported
[
NV_TEXGEN_REFLECTION
]
=
TRUE
;
...
...
include/wine/wined3d_gl.h
View file @
62694157
...
...
@@ -2887,6 +2887,25 @@ typedef void (WINE_GLAPI * PGLFNFINISHRENDERAPPLEPROC) (void);
#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64
#endif
/* GL_APPLE_float_pixels */
#ifndef GL_APPLE_float_pixels
#define GL_APPLE_float_pixels
#define GL_HALF_APPLE 0x140B
#define GL_COLOR_FLOAT_APPLE 0x8A0F
#define GL_RGBA_FLOAT32_APPLE 0x8814
#define GL_RGB_FLOAT32_APPLE 0x8815
#define GL_ALPHA_FLOAT32_APPLE 0x8816
#define GL_INTENSITY_FLOAT32_APPLE 0x8817
#define GL_LUMINANCE_FLOAT32_APPLE 0x8818
#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819
#define GL_RGBA_FLOAT16_APPLE 0x881A
#define GL_RGB_FLOAT16_APPLE 0x881B
#define GL_ALPHA_FLOAT16_APPLE 0x881C
#define GL_INTENSITY_FLOAT16_APPLE 0x881D
#define GL_LUMINANCE_FLOAT16_APPLE 0x881E
#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F
#endif
/* GL_VERSION_2_0 */
#ifndef GL_VERSION_2_0
#define GL_VERSION_2_0 1
...
...
@@ -3251,6 +3270,7 @@ typedef enum _GL_SupportedExt {
APPLE_CLIENT_STORAGE
,
APPLE_FLUSH_RENDER
,
APPLE_YCBCR_422
,
APPLE_FLOAT_PIXELS
,
/* SGI */
SGI_VIDEO_SYNC
,
SGIS_GENERATE_MIPMAP
,
...
...
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