comparison OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp @ 1571:85e117739eca

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 17:46:39 +0200
parents 244ad1e4e76a
children e4a52cbbdd70
comparison
equal deleted inserted replaced
1570:9a04f42098a3 1571:85e117739eca
42 unsigned int canvasWidth_; 42 unsigned int canvasWidth_;
43 unsigned int canvasHeight_; 43 unsigned int canvasHeight_;
44 bool isContextLost_; 44 bool isContextLost_;
45 45
46 public: 46 public:
47 PImpl(const std::string& canvasSelector) 47 explicit PImpl(const std::string& canvasSelector) :
48 : canvasSelector_(canvasSelector) 48 canvasSelector_(canvasSelector),
49 , isContextLost_(false) 49 isContextLost_(false)
50 { 50 {
51 // Context configuration 51 // Context configuration
52 EmscriptenWebGLContextAttributes attr; 52 EmscriptenWebGLContextAttributes attr;
53 emscripten_webgl_init_context_attributes(&attr); 53 emscripten_webgl_init_context_attributes(&attr);
54 54