Commit fc6c2be7 authored by Claude Heiland-Allen's avatar Claude Heiland-Allen Committed by IOhannes m zmölnig
Browse files

pix_snap2tex: RGBA16 is not supported in webgl

parent 98ddca1e
......@@ -194,7 +194,11 @@ void pix_snap2tex :: snapMess(void)
setTexCoords((float)width / (float)x_2, (float)height / (float)y_2);
glCopyTexImage2D( m_textureType, 0,
#ifdef __EMSCRIPTEN__
GL_RGB,
#else
GL_RGBA16,
#endif
m_x, m_y,
m_texWidth, m_texHeight,
0);
......@@ -203,7 +207,11 @@ void pix_snap2tex :: snapMess(void)
m_texWidth = width;
m_texHeight = height;
glCopyTexImage2D( m_textureType, 0,
#ifdef __EMSCRIPTEN__
GL_RGB,
#else
GL_RGBA16,
#endif
m_x, m_y,
m_texWidth, m_texHeight,
0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment