Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
0ef98739
Commit
0ef98739
authored
Jun 20, 2013
by
Geoff Lang
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong reading functions being used for some D3D formats.
TRAC #23256 Signed-off-by: Shannon Woods Author: Geoff Lang
parent
6350f734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
formatutils9.cpp
src/libGLESv2/renderer/formatutils9.cpp
+4
-4
No files found.
src/libGLESv2/renderer/formatutils9.cpp
View file @
0ef98739
...
@@ -193,10 +193,10 @@ static D3D9FormatInfoMap BuildD3D9FormatInfoMap()
...
@@ -193,10 +193,10 @@ static D3D9FormatInfoMap BuildD3D9FormatInfoMap()
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A4R4G4B4
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_BGRA4_ANGLEX
,
GenerateMip
<
B4G4R4A4
>
,
ReadColor
<
B4G4R4A4
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A4R4G4B4
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_BGRA4_ANGLEX
,
GenerateMip
<
B4G4R4A4
>
,
ReadColor
<
B4G4R4A4
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A1R5G5B5
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_BGR5_A1_ANGLEX
,
GenerateMip
<
B5G5R5A1
>
,
ReadColor
<
B5G5R5A1
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A1R5G5B5
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_BGR5_A1_ANGLEX
,
GenerateMip
<
B5G5R5A1
>
,
ReadColor
<
B5G5R5A1
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_R5G6B5
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_RGB565
,
GenerateMip
<
R5G6B5
>
,
ReadColor
<
R5G6B5
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_R5G6B5
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_RGB565
,
GenerateMip
<
R5G6B5
>
,
ReadColor
<
R5G6B5
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_X8R8G8B8
,
D3DFormatInfo
(
32
,
1
,
1
,
GL_BGRA8_EXT
,
GenerateMip
<
A8R8G8B8
>
,
ReadColor
<
A8R8G8B
8
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_X8R8G8B8
,
D3DFormatInfo
(
32
,
1
,
1
,
GL_BGRA8_EXT
,
GenerateMip
<
B8G8R8A8
>
,
ReadColor
<
B8G8R8A
8
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A8R8G8B8
,
D3DFormatInfo
(
32
,
1
,
1
,
GL_BGRA8_EXT
,
GenerateMip
<
A8R8G8B8
>
,
ReadColor
<
A8R8G8B
8
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A8R8G8B8
,
D3DFormatInfo
(
32
,
1
,
1
,
GL_BGRA8_EXT
,
GenerateMip
<
B8G8R8A8
>
,
ReadColor
<
B8G8R8A
8
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A16B16G16R16F
,
D3DFormatInfo
(
64
,
1
,
1
,
GL_RGBA16F_EXT
,
GenerateMip
<
A16B16G16R16F
>
,
ReadColor
<
A16B16G16R
16F
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A16B16G16R16F
,
D3DFormatInfo
(
64
,
1
,
1
,
GL_RGBA16F_EXT
,
GenerateMip
<
R16G16B16A16F
>
,
ReadColor
<
R16G16B16A
16F
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A32B32G32R32F
,
D3DFormatInfo
(
128
,
1
,
1
,
GL_RGBA32F_EXT
,
GenerateMip
<
A32B32G32R32F
>
,
ReadColor
<
A32B32G32R
32F
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_A32B32G32R32F
,
D3DFormatInfo
(
128
,
1
,
1
,
GL_RGBA32F_EXT
,
GenerateMip
<
R32G32B32A32F
>
,
ReadColor
<
R32G32B32A
32F
,
GLfloat
>
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_D16
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_DEPTH_COMPONENT16
,
NULL
,
NULL
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_D16
,
D3DFormatInfo
(
16
,
1
,
1
,
GL_DEPTH_COMPONENT16
,
NULL
,
NULL
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_D24S8
,
D3DFormatInfo
(
32
,
1
,
1
,
GL_DEPTH24_STENCIL8_OES
,
NULL
,
NULL
)));
map
.
insert
(
D3D9FormatInfoPair
(
D3DFMT_D24S8
,
D3DFormatInfo
(
32
,
1
,
1
,
GL_DEPTH24_STENCIL8_OES
,
NULL
,
NULL
)));
...
...
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