mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Use the same context attributes as the video_decode sample
This commit is contained in:
parent
5b71aa0ce2
commit
33a19a52f4
15
viddec.cpp
15
viddec.cpp
@ -66,11 +66,16 @@ void MoonlightInstance::InitializeRenderingSurface(int width, int height) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t contextAttributes[] = {
|
int32_t contextAttributes[] = {
|
||||||
PP_GRAPHICS3DATTRIB_BLUE_SIZE, 8,
|
PP_GRAPHICS3DATTRIB_ALPHA_SIZE, 8,
|
||||||
PP_GRAPHICS3DATTRIB_GREEN_SIZE, 8,
|
PP_GRAPHICS3DATTRIB_BLUE_SIZE, 8,
|
||||||
PP_GRAPHICS3DATTRIB_RED_SIZE, 8,
|
PP_GRAPHICS3DATTRIB_GREEN_SIZE, 8,
|
||||||
PP_GRAPHICS3DATTRIB_WIDTH, width,
|
PP_GRAPHICS3DATTRIB_RED_SIZE, 8,
|
||||||
PP_GRAPHICS3DATTRIB_HEIGHT, height,
|
PP_GRAPHICS3DATTRIB_DEPTH_SIZE, 0,
|
||||||
|
PP_GRAPHICS3DATTRIB_STENCIL_SIZE, 0,
|
||||||
|
PP_GRAPHICS3DATTRIB_SAMPLES, 0,
|
||||||
|
PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS, 0,
|
||||||
|
PP_GRAPHICS3DATTRIB_WIDTH, width,
|
||||||
|
PP_GRAPHICS3DATTRIB_HEIGHT, height,
|
||||||
PP_GRAPHICS3DATTRIB_NONE
|
PP_GRAPHICS3DATTRIB_NONE
|
||||||
};
|
};
|
||||||
g_Instance->m_Graphics3D = pp::Graphics3D(this, contextAttributes);
|
g_Instance->m_Graphics3D = pp::Graphics3D(this, contextAttributes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user