rnc-archive / react-native-webgl

DEPRECATED: use expo-gl – Implements WebGL for react-native
295 stars 73 forks source link

Add GL_UNPACK_ALIGNMENT and GL_PACK_ALIGNMENT params to the WebGL pixelStorei method #97

Closed pm-nsimic closed 4 years ago

pm-nsimic commented 4 years ago

Summary

OpenGL ES 2.0 supports the GL_PACK_ALIGNMENT and GL_UNPACK_ALIGNMENT out-of-the-box. This PR simply passes the parameters to the glPixelStorei method.

Test Plan

What's required for testing (prerequisites)?

None.

What are the steps to reproduce (after prerequisites)?

None.

Compatibility

OS Implemented
iOS
Android

Checklist

gre commented 4 years ago

https://github.com/react-native-community/react-native-webgl/pull/100